ObjectType:rgb
Jump to navigation
Jump to search
Contents
Overview
rgb | |
Defined By | LavishScript |
Inherits | none |
Reduces To | Same as Hex |
Variable Object Type | rgb |
Uses Sub-Types | no |
C/C++ Type | _RGBCOLOR * |
Short for red, green, blue, an rgb type describes a complete color, comprised of the primary colors of light.
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
Methods
- Set: Sets the rgb hex to a given value
Returns
Same as Hex
Examples
Declare an rgb variable
- declare Color rgb FF0000
Display a rgb variables red amount
- echo Red: ${Color.Red}
Display a rgb variables green amount
- echo Green: ${Color.Green}
Display a rgb variables blue amount
- echo Blue: ${Color.Blue}
Set a rgb variables color
- Color:Set[FF00FF]
Operates On
_RGBCOLOR *
See lstype.h
See Also
LavishScript Object Types
- Text
- string - mutablestring - unistring
- Numbers
- byte - float - float64 - int - uint - int64
- Boolean (TRUE/FALSE)
- bool
- Pointers
- boolptr - byteptr - floatptr - float64ptr - intptr - uintptr - int64ptr - rgbptr - stringptr
- Containers
- objectcontainer - array - index - collection - queue - stack - set - variablescope
- JSON
- jsonobject - jsonarray - jsonvaluecontainer - jsonvalue
- Iteration
- iterator - jsoniterator
- Date/Time
- time
- File Handling
- filepath - file - filelist - filelistentry
- Tasks
- lavishmachine - Accessed via the Top-Level Object LMAC
- task - tasklibrary - taskmanager - tasktype - taskpulseargs - elmactaskstate