We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi
I need to convert between HSB and RGB colors - I store colors in arrays as HSB but need to used these colours to set the color of ControlP5 buttons which require an RGB int to set their color.
I'd be very greatful if somone could post an example of this working in processing. My googling hasn't turned up anything i can get working!
thanks tom
Answers
color() always return aRGB according to current colorMode():
@sleepytom, if you are changing colorMode() back and forth every time, you can change it back manually:
...or, you can use pushStyle() / popStyle():