Class: Color

jGraduate~jQuery.jPicker.Color(init) → {external:jQuery.jPicker.Color}

new Color(init) → {external:jQuery.jPicker.Color}

Color object - we will be able to assign by any color space type or retrieve any color space info. We want this public so we can optionally assign new color objects to initial values using inputs other than a string hex value (also supported) Note: JSDoc didn't document when expressed here as an ES6 Class.

Parameters:
Name Type Description
init module:jPicker.JPickerInit
Source:
Returns:
Type
external:jQuery.jPicker.Color

Methods

(inner) bind(callback) → {void}

Parameters:
Name Type Description
callback GenericCallback
Source:
Returns:
Type
void

(inner) destroy() → {void}

Unset changeEvents

Source:
Returns:
Type
void

(inner) fireChangeEvents(context) → {void}

Parameters:
Name Type Description
context module:jPicker.Slider
Source:
Returns:
Type
void

(inner) unbind(callback) → {void}

Parameters:
Name Type Description
callback GenericCallback
Source:
Returns:
Type
void

(inner) val(name, valueopt, context) → {module:jPicker.JPickerInit|string|null|void}

Parameters:
Name Type Attributes Description
name string | "ahex" | "hex" | "all" | "" | null | void

String composed of letters "r", "g", "b", "a", "h", "s", and/or "v"

value module:jPicker.RGBA | module:jPicker.JPickerInit | string <optional>
context external:jQuery.jPicker.Color
Source:
Returns:
Type
module:jPicker.JPickerInit | string | null | void