Code viewer for World: Tutorial 1.1 (clone by Joh...

// Cloned by John McCormack on 28 Sep 2023 from World "Tutorial 1.1" by "Coding Train" project 
// Please leave this clone trail here.
 


function setup() {
  createCanvas(640, 360);
}

function draw() {
  //background(255);
  background(150, 150, 200);
  ellipseMode(CENTER);
  rectMode(CENTER);
  
  // 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);
  
  fill(255, 0, 0);
  circle(300, 150, 50);
}