Skip to content

Instantly share code, notes, and snippets.

@danilw
danilw / svg-to-shadertoy.py
Created November 22, 2025 13:15 — forked from Ninja-Koala/svg-to-shadertoy.py
Convert a svg path to a shadertoy shader
# svg to curves path https://www.shadertoy.com/view/Wtt3Wl
#!/usr/bin/python3
import os
import sys
import numpy as np
def read_value(string, index):
#go to the beginning of the value
while svg_content[index] not in numerals: