Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Eclipse HSL controls within Color Picker

Hello,

On 07/10/2017 01:45 PM, Zorawar S.B. wrote:
Hi,

This is about the Color Picker that comes up when defining custom colors. (I have attached the image.) For the HSL controls, the Saturation(Sat) and Luminosity(Lum) controls can take up values greater than 100. Is this correct?

Below link says saturation and lightness are percentage values.
https://www.w3schools.com/colors/colors_hsl.asp

I am not a Platform UI developer but this is my understanding as well. Saturation and lightness are either a real number between 0 and 1.0, or a percentage.

Note that the color picker widget is set up differently on different platforms -- for example on Linux (GTK3) the HSL method is deprecated. The color picker instead just uses Red, Green, Blue, and Alpha.

Also, for the Eclipse Color Picker do Lightness and Luminance mean the same thing?

Yes, this is correct. Sometimes it is also called luminosity.


--
Eric Williams
Associate Software Engineer - Eclipse Team
Red Hat


Back to the top