DataType:rgb
From Lavish Software Wiki
Contents |
[edit]
Description
Short for red, green, blue, an rgb type describes a complete color, comprised of the primary colors of light.
[edit]
Members
- string Hex: A hexadecimal value representing the color, in the form rrggbb. For example, "ff0000" is full red.
- byte Red: 0-255 indicating the amount of red
- byte Green: 0-255 indicating the amount of green
- byte Blue: 0-255 indicating the amount of blue
[edit]
Methods
- Set: Sets the rgb hex to a given value
[edit]
Returns
Same as Hex
[edit]
Examples
[edit]
Declare an rgb variable
- declare Color rgb FF0000
[edit]
Display a rgb variables red amount
- echo Red: ${Color.Red}
[edit]
Display a rgb variables green amount
- echo Green: ${Color.Green}
[edit]
Display a rgb variables blue amount
- echo Blue: ${Color.Blue}
[edit]
Set a rgb variables color
- Color:Set[FF00FF]
[edit]
Operates On
_RGBCOLOR *
See lstype.h
[edit]
