<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > WCon > WCon_PaletteGetColor |
Description
Allows to retrieve RGB value for given color code
Syntax
rgbColor = WCon_PaletteGetColor(colorCode)
Returns
Long RGB Color value for the given colorCode
Parameters
Name |
Type |
Optional |
Meaning |
colorCode |
Numeric |
No |
color, 0 to 255, you can use %WCon_COLOR_* equates |
Remarks
Restrictions
See also
Examples
' You can tweak yellow to different kind, if you like
WCon_PaletteSetColor(%WCON_COLOR_YELLOW, RGB(255, 192, 0))
' ... retrieve color stored
Long RBGColor = WCon_PaletteGetColor(%WCON_COLOR_YELLOW)