If I do this:
Code: Select all
SelectBrush(1)
NewColor$=ReadPixel(5,5)
EndSelect
DebugPrint(NewColor$)
How do I interpret this output? In other words, how do I find the RGB values for this color?
Thanks,
Code: Select all
SelectBrush(1)
NewColor$=ReadPixel(5,5)
EndSelect
DebugPrint(NewColor$)
ReadPixel() returns an RGB value. What you have above is just decimal notation of the color which might be a little bit confusing because RGB colors are normally dealt with in hexadecimal notation. To get hexadecimal notation, just use:How do I interpret this output? In other words, how do I find the RGB values for this color?
Code: Select all
color = ReadPixel(5, 5)
DebugPrint(HexStr(color))
Code: Select all
r = Red(color)
g = Green(color)
b = Blue(color)