4 ms·
This is nice. I wrote a spirograph simulator when I was 14 years old, but of course it didn't have such nice UI (basically it was just a couple of calls of sin(
by amelius 10y ago
This is nice. I wrote a spirograph simulator when I was 14 years old, but of course it didn't have such nice UI (basically it was just a couple of calls of sin(x) and cos(x) in a loop, and some graphics calls, it was much fun nonetheless).
Some ideas:
- Animate the rotation of the gears more smoothly for more realism.
- Add an automatic mode, where the gears keep on moving until it reaches the point when the path starts overlapping itself.