General information
Category:
Coding, syntax & commands
Thanks!
>>How do you get a rgb string ("125,125,125") from a number.
>>ex:
>>myColor = RGB(100,100,0)
>>myRGBString = NumToRGB(mycolor)
>>How do I do this?
>>-John S. Huddleston
>
>John,
>
>not my code, but we do it like this:
>
>lnNew = GETCOLOR()
>RGB3 = INT( lnNew/(256*256))
>lnNew = lnNew - ( RGB3 * 256 * 256)
>RGB2 = INT( lnNew/256)
>lnNew = lnNew - ( RGB2 * 256)
>RGB1 = lnNew
>
>HTH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only