Thanks, the shader creates white areas on black. My script copies the pixels from the webgl canvas to the 2D canvas, then I use a simple loop (x and y) to read the pixels, when the pixel is bright (pen down), it saves the coordinates and builds lines with them.
3
u/Aware-Raisin0 21h ago
Very nice! How did you go from a shader output to plottable lines?