Permalink
Browse files

actually adding the text for this small little app

  • Loading branch information...
1 parent cc77f95 commit 4116bd30bf5aa91b0d0ab0f040db3ffde4fb259f @joshuajnoble committed Feb 10, 2015
Showing with 13 additions and 0 deletions.
  1. +13 −0 ch08/0801/fiftyCircles.pde
View
@@ -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);
+ }
+}

0 comments on commit 4116bd3

Please sign in to comment.