Billocap / Donut-JS

A JavaScript version of the donut.c program.
https://billocap.github.io/Donut-JS/
4 stars 0 forks source link

Add P5.js version? #2

Open VojtaStruhar opened 1 week ago

VojtaStruhar commented 1 week ago

P5.js is fairly popular framework for rendering cool stuff with javascript. I quickly adapted the code for their framewok - only changed the text rendering and resolved conflicting names. I think someone could find this interesting

https://editor.p5js.org/vojtechstruhar/sketches/pOHd-4grM

Billocap commented 1 week ago

That's really cool, it's nice to see this old project in a new engine. If you are looking for a challenge you could convert it to ray marching. I think that could make the code even smaller.

VojtaStruhar commented 1 week ago

That could be actually pretty cool 🤔 P5 can do some shaders. Thanks for the suggestion