xxxxxxxxxx
var x = 50;
function setup() {
createCanvas(windowWidth, windowHeight);
frameRate(1);
colorMode(HSB);
}
function draw() {
stroke('blue');
// 50 < x < 800
if( x >= 800)
x = 50;
else
x += 50;
line(x, 100, 800-x, 500);
}