Last active
October 1, 2015 00:14
-
-
Save rossedfort/b2c90e44bd4e811e7a35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
noStroke(); | |
width = 1400 | |
height = 780 | |
createCanvas(width, 780); | |
background(0); | |
size = 10 | |
} | |
function draw() { | |
if (mouseIsPressed) { | |
noLoop(); | |
} | |
fill(random(255), random(255), random(255)); | |
ellipse(random(width), random(height), size, size); | |
size -= 1 | |
if (size == 0) { | |
size = 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment