I'm new to Processing and need some help with a spirograph sketchpad that I've created. I'm trying to make it possible to draw patterns with either points or lines. Right now it's possible to draw a pattern made out of points, but I can't figure out how to draw lines correctly.
I'm thinking that the lines should be drawn between each point by using vertex() (or maybe curveVertex()). I tried out a couple of different approaches to get it to work but the result isn't really what I'm looking for. Right now a straight line is drawn at each point but they are not connecting to each other. My coding attempts can be found at rows 86-105.
Press the mouse to draw, press 'v' to change between points and lines.
// *** SIZE VARIABLES *** //
float ringDiameter; //Diameter of the outer ring
float wheelDiameter; //Diameter of the inner wheel
float ringRadius; //Radius of the outer ring
float wheelRadius; //Radius of the inner wheel
float distance;
// *** ROTATION VARIABLES *** //
float wheelCenterRotation; //Start angle for the centerpoint of the wheel