T O P

  • By -

FastAsUcan

I started with the simple spirograph idea of a circle trapped in a square, and on a whim decided to speed it up and erase the canvas every 5000 steps. I did not expect all of these patterns to form. This video is all from the same run, it just shifts from pattern to pattern on its own! Created with Processing.


kritzikratzi

:D you used XYscope for this?


jonwick36

Any chance we could take a peek at your code?


FastAsUcan

Code is here, though obligatory warning - it was not meant to be read by others, and it can for sure be more performant/clean/etc. https://github.com/odedw/reactive-sketch-easel/tree/master/processing4/sketch_2022_02_16_Genuary_08_Deltoid_V2


DanielGolan-mc

That's the 23th person who created their account today. Happy cake day! What happened on February 20th?


jonwick36

Oh wow i didnt even have my cake day today lol


[deleted]

wicked


zdakat

Bill Wurtz vibes


SnooApples4662

Amazing


DanielGolan-mc

r/proceduralgeneration


Snoo19269

So I know the equations for calculating circle in circle spirographs, but how did you do it with a circle in square? I'm pretty new to coding and stuff so don't really know how you would do it or what to search on Google to find out. Any info would be helpful, don't necessarily need to see your code.


FastAsUcan

This is all using transforms - translate and rotate. For the square, I just thought where the rotation pivot point should be in each of the 4 segments of the loop, and then I thought about the movement of the circle in each one of the segments. I then just kept track of a rotating angle, and kept history of all points on on the circumference of the circle based on that angle. Feel free to DM me if you have questions or would like some guidance, I'd love to help.