xxxxxxxxxx
25
// Can you ever go right to left?
// Location of ellipse
let x = 0;
let y = 0;
// Determine speed
let speed = 1;
// Determines steepness
let yscl = 5;
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background('black');
// Update x and y
x += speed;
y += speed * yscl;
fill('white');
ellipse(x,y, 5, 5);
}