void setup() { size(500, 500); background(0); strokeWeight(4); colorMode(HSB); frameRate(10); } void draw() { fill(0, 10); noStroke(); rect(0, 0, width, height); } void circle(float x, float y, float diameter) { ellipse(x, y, diameter, diameter); } void aline(float x, float y, float angle, float len) { line(x, y, x + cos(angle)*len, y + sin(angle)*len); } void burst(float x, float y, float len) { for (float deg = 0; deg<360; deg = deg + 10) { aline(x, y, radians(deg), len); } } void polygon(float x, float y, int numSides, int step, float diam) { float startAngle, endAngle; float startx, starty, endx, endy; float len; len = diam/2.0; for (int i = 0; i