<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > WCon > WCon_PaletteSetColor |
Description
Allows to override predefined color with custom RGB value
Syntax
rgbColor = WCon_PaletteSetColor(colorCode, rgbValue)
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 |
rgbValue |
Numeric |
No |
new color, created for example using RGB function |
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)