Class Color
A Component that defines color information.
Used primarily in a Brush Component.
Methods
Color:Color (_mode, ...) | Color constructor. |
Properties
self.Mode.get () | Returns the ColorMode of this Color. |
self.Data.get () | Returns the color data used to construct this Color Component. |
self.Stylesheet.get () | Updates and returns the stylesheet for this Color Component. |
Methods
- Color:Color (_mode, ...)
-
Color constructor.
Expected arguments differ depending on mode.
RGB and HSV modes expect a comma-separated list of 3 - 4 numbers.
Name mode expects a single string.
Hex mode expects a single Hex string.
Parameters:
- _mode ColorMode Determines handling of color data.
- ... Color data. See description.
Returns: