Skip to content

Instantly share code, notes, and snippets.

@claytical
Created September 28, 2015 22:01
Show Gist options
  • Save claytical/8c103d8be54fa3aa4315 to your computer and use it in GitHub Desktop.
Save claytical/8c103d8be54fa3aa4315 to your computer and use it in GitHub Desktop.
For Example
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