void setup() { size(800, 600); } int x = 0; int y = 0; void draw() { stroke(x / (width / 255)); line(x, 0, x, y); x+= 1; y+= 1; }