Learn creative coding writing simple programs

17. A better way to generate random colors

Here we make the colors of our animated rainbow less pale. Until now we have used the RGB color mode to randomly generate colors. In this episode we discover the HSB color mode. It's easier to control because it allows us to generate random colors with certain properties, for example dark colors, pale colors, bright colors, etc. That means they are less random and probably closer to what we want.

Tags: beginners

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus