xxxxxxxxxx
//GLOBAL VARIABLE SPACE-------------------------------
let xPosition;
//MAIN FUNCTIONS--------------------------------------
function setup() {
createCanvas(350, 600);
//INITIALIZE VARIABLE
xPosition = 350;
//MODE
rectMode(CENTER);
//BACKGROUND
background(0,168,107);
}
function draw() {
noStroke();
fill(0);
rect(0,325,200,650);
noStroke();
fill(0);
rect(350,325,200,650);
//FOR LOOPs
for (let y=600;y>0;y-=10){
fill(255);
noStroke();
circle(5,y,5);
}//right left circles
for (let y=600;y>0;y-=10){
fill(255);
noStroke();
circle(93,y,5);
}//right right circles
for (let y=600;y>0;y-=10){
fill(255);
noStroke();
circle(345,y,5);
}//left right circles
for (let y=600;y>0;y-=10){
fill(255);
noStroke();
circle(257,y,5);
}//left left circles
for (let y=0; y < 650; y+=35){
fill(220,220,220);
stroke(0);
strokeWeight(5);
rect(50,y,75,75);
}//rect loop y
for(let y= 0; y<650; y+=100){
noStroke();
fill(0);
rect(175,y,75,50);
fill(30);
rect(175,y-40,50,30);
fill(100);
rect(175,y-40,25,15);
fill(125,0,0);
circle(175,y,35);
fill(225);
circle(175,y,25);
}//camera loop y
for (let y=0; y < 650; y+=35){
fill(220,220,220);
stroke(0);
strokeWeight(5);
rect(300,y,75,75);
}//rect right loop y
//WHILE LOOP
//star
// while(xPosition>0){
// noStroke();
// fill(120,0,0);
// beginShape();
// vertex(50,50);
// vertex(40,75);
// vertex(15,75);
// vertex(38,95);
// vertex(26,125);
// vertex(50,105);
// vertex(74,125);
// vertex(62,95);
// vertex(85,75);
// vertex(60,75);
// vertex(50,50);
// endShape();
// }
}//end draw