Color format

Just starting out? Need help? Post your questions and find answers here.
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Color format

Post by A M S »

what is format color? #66cc00
how can i convert a RGB format-color to this one?
culita
User
User
Posts: 29
Joined: Thu May 03, 2012 1:24 pm

Re: Color format

Post by culita »

Code: Select all

;RGBA(102,   204,   0, 128)) = #66cc00 ,80h
Red=102
Green=204
Blue=0
Alpha=128
Color = RGBA(Red, Green, Blue, Alpha)
Debug Color
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: Color format

Post by A M S »

I don't get yet!
i need ColorRequester() output convert to that format really.
i am not pro in coding . :(
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Color format

Post by c4s »

It's the same! Just output it using:

Code: Select all

Red=102
Green=204
Blue=0
Color = RGB(Red, Green, Blue)
Debug Color
Debug "#" + RSet(Hex(Color, #PB_Long), 6, "0")
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: Color format

Post by A M S »

Thanks, exactly . :D

in your example Alpha=128 always (default)?
can i set my alpha myself if need that?
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Color format

Post by USCode »

Post Reply