xxxxxxxxxx
19
//https://www.sunwangshu.com/projects/fall-2015/icm/week01/flower2/
let Fx=400//declares veriables controlling the position of petals and leafs
let Fy=200//declares veriables controlling the position of petals and leafs
let Px=Fx-400//declares veriables controlling the position of petals and leafs
let Py=Fy+150//declares veriables controlling the position of petals and leafs
function setup() {//runs all code inside once
createCanvas(900,1400);//creates the canvas
}
function draw() { //runs 60 times a second
background(20,14,78);//makes the background color
for (var Fx=0;Fx<=400;Fx+=100) {//nested for loop to make two flowers
for (var Fy=0;Fy<=400;Fy+=100) {//nested for loop to make two flowers
flower1(Fx,Fy)//draws the flower
}//ends the loops
}//ends the loops
}//ends the loops