Minor Request: IDE Colour-Picker values

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
pendle
New User
New User
Posts: 7
Joined: Tue Jun 28, 2022 7:41 pm

Minor Request: IDE Colour-Picker values

Post 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:
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 283
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: Minor Request: IDE Colour-Picker values

Post 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
Proud supporter of PB! * Musician * C64/6502 Freak
BarryG
Addict
Addict
Posts: 4118
Joined: Thu Apr 18, 2019 8:17 am

Re: Minor Request: IDE Colour-Picker values

Post by BarryG »

Does the OS color picker even support that? That's what PureBasic uses.
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Minor Request: IDE Colour-Picker values

Post 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
The Stone Age did not end due to a shortage of stones !
User avatar
pendle
New User
New User
Posts: 7
Joined: Tue Jun 28, 2022 7:41 pm

Re: Minor Request: IDE Colour-Picker values

Post 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.
BarryG
Addict
Addict
Posts: 4118
Joined: Thu Apr 18, 2019 8:17 am

Re: Minor Request: IDE Colour-Picker values

Post by BarryG »

Oh, I see what you mean now. Fair enough.
Post Reply