/processing-spirograph

Space Cadets Challenge 5 (University of Southampton), done using Processing.

Primary LanguageProcessing

🌟 Processing Spirograph 🌟

GitHub top language

Intended as a solution for Space Cadets Challenge 5 see challenge 1, using processing instead of purely java.

Spirographs can create some beautiful and seemingly complex designs. These designs can be summarised in equations (taken from the challenge brief) of the form:

x = (R-r)cos(t) + Ocos(((R-r)/r)*t)

y = (R-r)sin(t) - Osin(((R-r)/r)*t)

Where R is the radius of the fixed circle, r is the radius of the moving circle and O is the offset of the pen point in the moving circle.

The aim of this project was to learn how to use processing, an open source graphical library I would like to use in future projects. I have not used many graphical libraries apart from pygame, so it is useful to get familiar with another that uses Java. I also thought this would be an entertaining and visually pleasing challenge to attempt.

Example Patterns:

farfalle

blue_ring

star