slint icon indicating copy to clipboard operation
slint copied to clipboard

Add properties to the color type to get HSV component

Open ogoffart opened this issue 2 years ago • 18 comments

One should add the following properties to a colour to access individual components

  • [X] red
  • [X] blue
  • [X] green
  • [ ] hue
  • [ ] saturation
  • [ ] brightness or value?
  • [X] alpha or opacity?

What should these return? Float from 0 to 1 or int from 0 to 255? (Should hue be in deg) How to distinguish hue and saturation from the hsv and HSL colorspace?

ogoffart avatar Feb 02 '22 18:02 ogoffart