Code viewer for World: Tutorial 2.3 (1) (clone by...

// Cloned by test2 on 25 May 2021 from World "Tutorial 2.3 (1)" by "Coding Train" project 
// Please leave this clone trail here.
 

/*
https://vimeo.com/channels/learningp5js/138327558
*/
var circle = {
  x: 0,
  y: 200, 
  diameter: 50
};


var r = 218;
var g = 160;
var b = 221;

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

function draw() {
  // background
  background(r, g, b);
  // ellipse
  fill(250, 200, 200);
  ellipse(circle.x, circle.y, circle.diameter, circle.diameter);
  
  circle.x = circle.x + 1;
}