Jump to content

Recommended Posts

hello.. i am aware of _ColorGetRed/Green/Blue returns the RGB Colour from 1-255 from a Hexidecimal eg . 0x8080FF ....

is there a function so that i can reverse this .. ie.. input the RGB value 1-255 first then it returns the hex . the only other way i could think of was to do sumthing like this

If GUICtrlRead ($Input_1) =  0 Then
      GUICtrlSetData ($Label_4, "FF")
   ElseIf GUICtrlRead ($Input_1) = 1 Then
      GUICtrlSetData ($Label_4, "FE")
   ElseIf GUICtrlRead ($Input_1) = 2 Then
      GUICtrlSetData ($Label_4, "FD")
   ElseIf GUICtrlRead ($Input_1) = 3 Then
      GUICtrlSetData ($Label_4, "FC")

which would be very time consuming as u would have to do it for every value 00-FF and for RG and B...

ty in advance

Edited by burrup


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...