P5JS – LA 2 – 2.3
In this lesson we played around with random variables and this again was quite easy and quickly done. I created soem kind of chaos that might hypnotize you and leave you in a trans, but enjoy ;).
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
//upper ellipses//
ellipse(random(150), 50, 100, 100);
ellipse(random(250, 400), 50, 100);
//lower ellipses//
ellipse(random(150), 350, 100, 100);
ellipse(random(250, 400), 350, 100, 100);
//center ellipse//
ellipse(random(100, 300),200 , 100, 100);
//ellipse left//
ellipse(25, random(150, 250), 50, 50);
//ellipse right//
ellipse(375, random(150, 250), 50, 50);
}