Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually adding the text for this small little app

  • Loading branch information...
commit 4116bd30bf5aa91b0d0ab0f040db3ffde4fb259f 1 parent cc77f95
@joshuajnoble authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 ch08/0801/fiftyCircles.pde
View
13 ch08/0801/fiftyCircles.pde
@@ -0,0 +1,13 @@
+void setup() {
+ size(800, 800);
+}
+void draw() {
+ background(0, 0, 0);
+ for(int i = 0; i < 50; i++)
+ {
+ // draw 50 circles in the center of the screen with the circles
+ // progressively getting closer and closer to the mouse, increasing the size of the circles
+ ellipse(400 - (i*10 - (0.02*i*mouseX)), 400 - (i*10 - (0.02*i*mouseY)), i*2, i*2);
+ fill(255, 255, 255, 20);
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.