Color

Defines the Brush Component.

Summary
ColorDefines the Brush Component.
Functions
newExpected arguments differ depending on mode.
New ColorA Component that defines color information.
Variables
color_dataHolds the Component’s color data.
stylesheetThe Color Component’s stylesheet.
Functions
updateStylesheetUpdates the Color Component’s stylesheet.
Properties
Color Properties

Functions

new

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.

Parameters

modeA ColorMode enum, used to determine handling of color data.
...Color data.  See description.

Returns

A new Color Component.

New Color

A Component that defines color information.  Used primarily in a Brush Component.

Summary
Variables
color_dataHolds the Component’s color data.
stylesheetThe Color Component’s stylesheet.
Functions
updateStylesheetUpdates the Color Component’s stylesheet.
Properties
Color Properties

Variables

color_data

local color_data

Holds the Component’s color data.

stylesheet

local stylesheet

The Color Component’s stylesheet.  Generated via updateStylesheet.

Functions

updateStylesheet

local function updateStylesheet ()

Updates the Color Component’s stylesheet.  Actual output is dependent on ColorMode.

Properties

Color Properties

ModeReturns the Color Component’s ColorMode Enum.
DataReturns the color_data passed to the Color Component.
StylesheetUpdates and returns the Color’s stylesheet.
local function new (_,
mode,
...)
Expected arguments differ depending on mode.
local color_data
Holds the Component’s color data.
local stylesheet
The Color Component’s stylesheet.
local function updateStylesheet ()
Updates the Color Component’s stylesheet.
Defines a Brush Component.
Close