nick34992
4/19/2016 - 3:46 PM

Numbers Array. Using p5.js library.

Numbers Array. Using p5.js library.

var nums = [600, 500, 400, 300, 200, 100];

function setup() {
  createCanvas(648, 648);
}

function draw() {
background(random(85, 170), random(85, 170), random(85, 170));
stroke(random(85, 170), random(85, 170), random(85, 170), 100);
strokeWeight(60);
  for (i = 0; i < 6; i++) {
    fill(random(85, 170), random(85, 170), random(85, 170));
    // apply numbers array to ellipse dimensions
    ellipse(100 * i, 324, nums[i], nums[i]);
  }
  frameRate(5);
}