xxxxxxxxxx
57
//This is the pyramids of Giza, Egypt. The interactive piece is the backround. It changes from night to day.
let bg = false
function setup() {
createCanvas(400, 400);
setTimeout(function(){ background('lightBlue'); bg = true }, 3000);
}
function draw() {
if (bg == false) {
background('darkBlue');
}
noStroke();
fill(247,166,0);
rect(0,310,500,100);
fill(220,137,0);
triangle(150,320,290,190,400,320);
fill(195,110,0);
triangle(370,320,290,190,400,320);
fill(224,148,30);
triangle(100,320,190,190,300,320);
fill(204,112,0)
triangle(250,320,190,190,300,320);
fill(215,138,32);
triangle(50,320,90,230,200,320);
fill(171,98,2)
triangle(230,320,90,230,200,320);
fill(199,115,0);
triangle(200,320,290,270,350,320);
fill(179,100,0);
triangle(330,320,290,270,350,320);
//sun
//fill('#fff64a');
//ellipse(60,50,40,40)
fill('#87CEFA');
ellipse(70,70,40,40);
ellipse(120,70,40,40);
ellipse(95,50,40,40);
rect(75,50,40,40);
fill('#87CEFA');
ellipse(200,90,40,40);
ellipse(250,90,40,40);
ellipse(225,70,40,40);
rect(205,70,50,40);
}