Created
September 28, 2015 22:01
-
-
Save claytical/8c103d8be54fa3aa4315 to your computer and use it in GitHub Desktop.
For Example
This file contains hidden or 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
var dots = []; | |
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
for (var i = 0; i < 10; i++) { | |
dots.push(random(10,50)); | |
} | |
} | |
function draw() { | |
background(0); | |
noFill(); | |
stroke(255,0,0); | |
var tenth = height/10; | |
for (var i = 0; i < dots.length; i++) { | |
ellipse(width/2, i * tenth, dots[i], dots[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment