Page 1 of 1
					
				Color format
				Posted: Wed May 30, 2012 4:48 pm
				by A M S
				what is format color?  #66cc00
how can i convert a RGB format-color to this one?
			 
			
					
				Re: Color format
				Posted: Wed May 30, 2012 4:58 pm
				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
 
			 
			
					
				Re: Color format
				Posted: Wed May 30, 2012 5:15 pm
				by A M S
				I don't get yet!
i need ColorRequester() output convert to that format really.
i am not pro in coding . 

 
			 
			
					
				Re: Color format
				Posted: Wed May 30, 2012 5:26 pm
				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")
 
			 
			
					
				Re: Color format
				Posted: Wed May 30, 2012 5:36 pm
				by A M S
				Thanks, exactly . 
 
in your example Alpha=128 always (default)? 
can i set my alpha myself if need that?
 
			 
			
					
				Re: Color format
				Posted: Wed May 30, 2012 5:59 pm
				by USCode