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:

    Color

Properties

self.Mode.get ()
Returns the ColorMode of this Color.

Returns:

    ColorMode
self.Data.get ()
Returns the color data used to construct this Color Component.

Returns:

    string or table
self.Stylesheet.get ()
Updates and returns the stylesheet for this Color Component.

Returns:

    string
generated by LDoc 1.4.6 Last updated 2017-11-15 22:27:55