~pbatch/sdf2d

2d SDF shader functions by Inigo Quilez, ported to C

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~pbatch/sdf2d
read/write
git@git.sr.ht:~pbatch/sdf2d

You can also use your local clone with git send-email.

#sdf2d

Various 2d shapes with rainbow colors arranged in a grid

Tiny Rainbow Shapes Sprinkled On a Canvas

2d SDF shader functions by Inigo Quilez, ported to C.

https://iquilezles.org/articles/distfunctions2d/

To build, run "make", then "./demo" to run the demo.

The demo will produce 2 PPM files: "demo.ppm" and "sprinkles.ppm".