Defines the Brush Component.
| Color | Defines the Brush Component. | 
| Functions | |
| new | Expected arguments differ depending on mode. | 
| New Color | A Component that defines color information. | 
| Variables | |
| color_data | Holds the Component’s color data. | 
| stylesheet | The Color Component’s stylesheet. | 
| Functions | |
| updateStylesheet | Updates the Color Component’s stylesheet. | 
| Properties | |
| Color Properties | 
local function new ( _, mode, ... ) 
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.
| mode | A ColorMode enum, used to determine handling of color data. | 
| ... | Color data. See description. | 
A new Color Component.
A Component that defines color information. Used primarily in a Brush Component.
| Variables | |
| color_data | Holds the Component’s color data. | 
| stylesheet | The Color Component’s stylesheet. | 
| Functions | |
| updateStylesheet | Updates the Color Component’s stylesheet. | 
| Properties | |
| Color Properties | 
local stylesheet 
The Color Component’s stylesheet. Generated via updateStylesheet.
local function updateStylesheet () 
Updates the Color Component’s stylesheet. Actual output is dependent on ColorMode.
| Mode | Returns the Color Component’s ColorMode Enum. | 
| Data | Returns the color_data passed to the Color Component. | 
| Stylesheet | Updates and returns the Color’s stylesheet. | 
Expected arguments differ depending on mode.
local function new ( _, mode, ... ) 
Holds the Component’s color data.
local color_data 
The Color Component’s stylesheet.
local stylesheet 
Updates the Color Component’s stylesheet.
local function updateStylesheet ()