How processing handles a linear gradient

edited May 2016 in How To...

I'm trying to do a simple thing (i thought) which is a gradient from one color to another on a rectangle.

However, Processing seems to handle grads differently to something like Photoshop.

If i do a grad, for example, from HSB (0,0,100) to HSB (0,0,280) it runs fully around the color wheel from 100 to 280 producing a rainbow effect.

Whereas Photoshop blends from one color directly into another.

Anyone know how Processing handles the maths here so I can avoid it?

Tagged:

Answers

Sign In or Register to comment.