Page 1 of 1

Minor Request: IDE Colour-Picker values

Posted: Thu Oct 13, 2022 11:03 am
by pendle
It's nice to have a colour picker in the IDE, but having RGB values in the 0-255 range isn't so useful when you work with colours as 0.0-1.0 floats. Having to divide each value by 255 to get the needed float value is a little messy.

Would be nicer if we could select [0-255].. [0-100]..[0-1] ranges. A small update that would really make a difference!

Thanks for considering :wink:

Re: Minor Request: IDE Colour-Picker values

Posted: Sun Oct 16, 2022 4:18 am
by oreopa
I never use the colour picker, but your suggestion is a sensible and valid one (and very much, "just do it anyway" territory ;) ).

+1

Re: Minor Request: IDE Colour-Picker values

Posted: Sun Oct 16, 2022 4:43 am
by BarryG
Does the OS color picker even support that? That's what PureBasic uses.

Re: Minor Request: IDE Colour-Picker values

Posted: Sun Oct 16, 2022 5:24 am
by StarBootics
BarryG wrote: Sun Oct 16, 2022 4:43 am Does the OS color picker even support that? That's what PureBasic uses.
I can't tell for other OS but under Linux with GDK API the color is defined like this :

Code: Select all

  Structure GdkRGBA
    
    Red.d
    Green.d
    Blue.d
    Alpha.d
    
  EndStructure
So the answer is yes.

Best regards
StarBootics

Re: Minor Request: IDE Colour-Picker values

Posted: Sun Oct 16, 2022 9:32 am
by pendle
BarryG wrote: Sun Oct 16, 2022 4:43 am Does the OS color picker even support that? That's what PureBasic uses.
Referring to the one in the IDE under Tools-->Color Picker (not the ColorRequester() function). It's a custom one.

Re: Minor Request: IDE Colour-Picker values

Posted: Sun Oct 16, 2022 11:39 am
by BarryG
Oh, I see what you mean now. Fair enough.