gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.08k stars 650 forks source link

Is it possible to draw lines, rectangles, etc., onto the graphical canvas after it is been computed? #686

Open dan-reznik opened 3 years ago

dan-reznik commented 3 years ago

After the renderer returns the canvas in graphical mode, and you appendChild() it to the DOM, can I draw on top of it (simple graphical annotations)?

If so, please point me to an example. The voronoi demo uses the kernel itself to draw pixel-by-pixel certain features (lines, squares), but I want to do this after the image is completed.