• isabellerieken

Production: Bom Día

Updated: Jan 17

//define color variables var b = 120 var g = 130 function setup() { createCanvas(700, 400); noStroke(); } function draw() { //background color r = map(mouseY,0,600,255,0); background(r,g,b); //sun constrain let topWall = 395; let bottomWall = 580; let yc = constrain(mouseY, topWall, bottomWall); //cloud constrain let topWall1 = -10; let bottomWall1 = 195; let yc1 = (mouseY, topWall1, bottomWall1); //clouds if (mouseY > 0){ fill(255,255,255); noStroke; translate(0, mouseY) ellipse(90,yc1,70,70); fill(255,255,255); noStroke; ellipse(130,yc1,80,80); fill(255,255,255); noStroke; ellipse(180,yc1,100,100); fill(255,255,255); noStroke; ellipse(225,yc1,80,80); fill(255,255,255); noStroke; ellipse(190,yc1,70,70); fill(255,255,255); noStroke; ellipse(140,yc1,90,90); //2nd cloud fill(255,255,255); noStroke; ellipse(390,140,70,70); fill(255,255,255); noStroke; ellipse(430,110,80,80); fill(255,255,255); noStroke; ellipse(480,90,100,100); fill(255,255,255); noStroke; ellipse(525,120,80,80); fill(255,255,255); noStroke; ellipse(490,145,70,70); fill(255,255,255); noStroke; ellipse(440,145,90,90); }



Recent Posts

See All

Production: Laser Light Show

Original Editor: https://editor.p5js.org/izzy_rieken/sketches/2POEqq91O New Editor: https://editor.p5js.org/izzy_rieken/sketches/K2L01Qmlq New Present: https://editor.p5js.org/izzy_rieken/present/K2L0