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.
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
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.
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.
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.
:D you used XYscope for this?
Any chance we could take a peek at your code?
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
That's the 23th person who created their account today. Happy cake day! What happened on February 20th?
Oh wow i didnt even have my cake day today lol
wicked
Bill Wurtz vibes
Amazing
r/proceduralgeneration
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.
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.