boolean reset = false; boolean showNums = true; boolean showCircles = false; float pTime = 300;//pause 300 milliseconds each frame float dp = 100; float t = 0; float dt = 0.2; float dtheta = PI/360; //one half degree float theta = 2*PI/3; //starting turn angle //these values are for scaling "math" coords to screen coords int xmag = 50; int ymag = 50; int xScreenCenter = 500; int yScreenCenter = 300; float c = 20; float r = 6; //radius float r2= 1; //small rad int count = 0; float radius = 10; void setup() { colorMode(HSB); size(1000, 600); background(100); textSize(24); } void draw() { text("use Up/Down ", 20, 290); text("for speed", 20, 320); text("use Left/Right ", 20, 350); text("for turn angle", 20, 380); text("keys C, N toggle", 20, 410); text("circle and number", 20, 440); text("spacebar resets", 20, 470); fill(100); rect(800,500,900,600); fill(0); text("turn angle "+ nf(theta*180/PI, 0, 1), 810, 550); r = c*sqrt(count); float t = count*theta; if (r