Code viewer for World: Tutorial 1.4 (clone by p b...

// Cloned by p birdwood on 10 Sep 2020 from World "Tutorial 1.4" by "Coding Train" project 
// Please leave this clone trail here.
 

/*
code from video: https://youtu.be/9mucjcrhFcM?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
code can be seen from 9:47 second onward
*/


function setup() {
  createCanvas(600, 400);
  print("hello");  
}


function draw() {
  //background(255);
  background(150, 0, 200);
  ellipseMode(CENTER);
  rectMode(CENTER);
  
  // Body
  fill(255, 0, 0);
  rect(240, 145, 20, 100);
  
  // Head 
  fill(255, 0, 255);
  ellipse(240, 115, 60, 60);
  
  // Eyes
  fill(0, 255, 250);
  ellipse(221, 115, 16, 32);
  ellipse(259, 115, 16, 32);
  
  // Legs
  line(230, 195, 220, 205);
  line(250, 195, 260, 220);
}