Code viewer for World: Tutorial 1.5 (clone by Yim...

// Cloned by Yiming Fu on 30 Nov 2022 from World "Tutorial 1.5" by "Coding Train" project 
// Please leave this clone trail here.
 



function setup() {
  createCanvas(600, 400);  
  
  // write message to console: 
  print ( "Hello");
}


function draw() {
  //background(255);
  background(150, 150, 200);
  ellipseMode(CENTER);
  rectMode(CENTER);
  
  
  // uncomment the following "stroke" line to see what a syntax error does in the console
  // (in fact, this error will be caught by both the Ancient Brain editor and the Ancient Brain save function)
  
  //      stroke ( 0, 0 255 );
  
  
  // 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);
}