fabianmoronzirfas
11/14/2016 - 2:28 PM

p5js loops

p5js loops

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

function draw() {
    for (var x = 0; x < width; x+=5) {
    for (var y = 0; y < height; y += 5) {
      fill(random(50, 100), random(10, 255), random(0, 255));
      ellipse(x, y, 5, 5);
    }
  }
}