Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setting the saturation and brightness of an RGB color

807589Jul 18 2008 — edited Jul 18 2008
Hi, 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2008
Added on Jul 18 2008
18 comments
929 views