If you need some gradients for your Processing applications, I've put together some code that you can easily reuse. You can dither the gradients so they will look extra smooth.
When a gradient is very subtle and dark, you may notice "banding" in the colors caused by integer approximation. Dithering is a way to spread out this error so it become unnoticeable.
The gradients are pretty CPU-intensive, so they should only be used for applications where you don't require speed, and where you really want high-quality output. You could also draw the gradients once to a PGraphics object, and then animate these as needed.
See my blog post here: http://rectangleworld.com/blog/archives/996
When a gradient is very subtle and dark, you may notice "banding" in the colors caused by integer approximation. Dithering is a way to spread out this error so it become unnoticeable.
The gradients are pretty CPU-intensive, so they should only be used for applications where you don't require speed, and where you really want high-quality output. You could also draw the gradients once to a PGraphics object, and then animate these as needed.
See my blog post here: http://rectangleworld.com/blog/archives/996
1