homework for 10/31/23

 


function setup(){

  createCanvas(1280, 720);

}


function draw() {

  //background color

  background(128,106,104)

  

  //circle 

  fill(230,129,46)

  strokeWeight(5);

  stroke(229,156,118)

  circle(640,360,700)

  

  //clover color

  stroke(14,135,28);

  fill(14,135,28);

  

  //top leaf

  ellipse(605,250,114,200)

  ellipse(675,250,114,200)

  circle(640,360,50)

  

  //right leaf

  ellipse(750,325,200,114)

  ellipse(750,395,200,114)

  

  //bottom leaf

  ellipse(605,460,114,200)

  ellipse(675,460,114,200)

  

  //left leaf

  ellipse(530,325,200,114)

  ellipse(530,395,200,114)

  

  //stem

  beginShape();

  vertex(450,500);

  vertex(550,450);

  vertex(550,475);

  vertex(450,550);

  endShape();

  

  //shadow colors

  fill(98,135,14)

  stroke(98,135,14)

  

  //shadow lines

  line(640, 170, 640, 300)

  line(830, 357, 700, 357)

  line(640, 410, 640, 540)

  line(450, 357, 580, 357)

  

  

}


Comments

Popular Posts