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

// Cloned by Yiming Fu on 29 Nov 2022 from World "Tutorial 2.3 (0)" by "Coding Train" project 
// Please leave this clone trail here.
 

/*
https://vimeo.com/channels/learningp5js/138327558
*/

var x = 0;
var y = 200;
var 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(x, y, diameter, diameter);
  
  x = x + 1;
}