size (200,200); background(255); int y=0;//line int s=255;//stroke color while (y<200) { stroke(s,0,0); s=s-5; line(0,0,200,y); y=y+4; }