Critical Code

Making things move

var x = 100.0; 
var y = 100; 
var speed = 2.5; 

function setup(){
  createCanvas(800, 200);
}

function draw(){
  background(0);
  fill(1);

  x += speed; 

  if(x > width){
    x = 0; 
  }
  fill(210, 30, 140);
  ellipse(x,y,50,50);
}