Code viewer for World: Tutorial 1.6 (clone by Kline)

// Cloned by Kline on 27 Sep 2022 from World "Tutorial 1.6" by "Coding Train" project 
// Please leave this clone trail here.
 



function setup() {
  createCanvas(600, 400);  
}


function draw() {
  //background(255);
  background(150, 150, 200);
  ellipseMode(CENTER);
  rectMode(CENTER);
  
  
  // Using comments to enable/disable code
  // Alternate commenting out one of the following:
  
    //     stroke(255, 204, 0); strokeWeight(4);
    //   noStroke();
  
  
  
  // Body
  fill(255, 0, 0);
  rect(240, 145, 20, 100);
  
  // Head 
  fill(0, 0, 255);
  ellipse(240, 115, 60, 60);
  
  // Eyes
  fill(0, 255, 0);
  ellipse(221, 115, 16, 32);
  ellipse(259, 115, 16, 32);
  
  // Legs
  line(230, 195, 220, 205);
  line(250, 195, 260, 205);
}