change color flow direction (noob alert)?

how would i change these colors from going side to side to up and down?

public void display() 
stroke(255);
fill(250 * sin(angle), 0, 0);
rect(x, y, w, h);

Answers

Sign In or Register to comment.