float myrot = 0; int a = -1; float c = .5; int d = 10; int f = 10; int y; int t = 10; int u = 50; boolean grow = true; boolean go = true; int numBalls = 3; int m; void setup() { background(0); size(800,800); noStroke(); smooth(); } void draw() { //background(0); float radius = 1.0; pushMatrix(); translate(mouseX, mouseY); rotate(myrot); myrot += a; if(mousePressed) { if(mouseButton == LEFT) { a *= -1; } } for(int deg = 0; deg <360 *6; deg +=11) { float angle = radians(deg); float x = (cos(angle)* radius); float y = (sin(angle) * radius); for(int i = 0; i <18; i++) fill(random(0,255), random(0,255), random(0,255)); ellipse(x,y,t,u); radius = radius + c; } if(mousePressed) { if(mouseButton == LEFT) { t += 25; //m = 30; } if(mouseButton == RIGHT) { t -= 25; } } if(keyPressed) { background(0); } popMatrix(); }