Code: Select all
GetRGB(value, component)
I assume it can get each R,G,B value, but how do I use it?
Code: Select all
GetRGB(value, component)
Code: Select all
Repeat
Color 255,0,255
Color 128,255,0
r=GetRGB(RED)
g=GetRGB(GREEN)
b=GetRGB(BLUE)
Text 0,0,r+" "+g+" "+b
Drawscreen
Forever
Thanks, worked like a charmotto90x wrote:I think that example is faulty, so i might as well give you working one:
RED GREEN and BLUE are constants and their values are 1, 2 and 3. So if you want you can replace them with corresponding numbers.Code: Select all
Repeat Color 255,0,255 Color 128,255,0 r=GetRGB(RED) g=GetRGB(GREEN) b=GetRGB(BLUE) Text 0,0,r+" "+g+" "+b Drawscreen Forever
Keep in mind that it returns only current color components.