Spirograph: the most advanced Spirograph simulator on Scratch. Variable functions: Rotations: how many pen steps the tool makes. Note: increasing rotations also increases render time, so it might lag a bit. R: the radius of the outer circle r: the radius of the inner circle h: The distance of the tracing point from the center of the inner circle Sample rate: how many steps the pen moves before recalculating. For traditional patterns, set to 1. Pen size: line width (or pen size :) Fun fact: with this simulator, you can make 800,000,000 (eight hundred million) unique patterns (8 trillion if you count pen size and rotations). Comment your favorite settings!
ChatGPT assisted with the math part of this code. All other code is by me. #spirograph #fractal #graph #graphing