setting the saturation and brightness of an RGB color
807589Jul 18 2008 — edited Jul 18 2008Hi, all:
So I have a an object with three properties: its RGB color, its brighness, and its saturation. Given an RGB color, like greenish = new Color(0, 153, 0), how can I set its brightness and saturation? I can't use the regular constructor for Color that uses (float hue, float saturation, float brightness), because the color greenish is an object color, not a float--but greenish IS the hue I want to use. Can this be done?