color mode in controlP5 HSB to RGB add java class - library
in
Contributed Library Questions
•
2 years ago
Hi
I have a newbie question
Goal, I have a control window in controlP5
I would like to make a color picker in this window that works in HSB not RGB
I will make 3 filled areas, Hue, Saturation and Brightness, the S and B would update to the current Hue and S or B respectively. These would be drawn with lines that vary in color along x
Question 1:
Problem, I have tried to set the color mode in the control window to HSB but I am doing it wrong or something, I probably don't know how to do it for the 'extra' window
Question 2: If I can't set the color mode in the control window, I could create the colors in HSB and convert to RGB to draw the lines. I have found in this forum the best way to do that is to use the java class color.
How do I add this library to my sketch?
Thanks!
I have a newbie question
Goal, I have a control window in controlP5
I would like to make a color picker in this window that works in HSB not RGB
I will make 3 filled areas, Hue, Saturation and Brightness, the S and B would update to the current Hue and S or B respectively. These would be drawn with lines that vary in color along x
Question 1:
Problem, I have tried to set the color mode in the control window to HSB but I am doing it wrong or something, I probably don't know how to do it for the 'extra' window
Question 2: If I can't set the color mode in the control window, I could create the colors in HSB and convert to RGB to draw the lines. I have found in this forum the best way to do that is to use the java class color.
How do I add this library to my sketch?
Thanks!
1