public Color: new(r?: number, g?: number, b?: number, a?: number) => JQueryColorpickerStatic.Color
constructor(): JQueryColorpickerStatic.Color
Returns
JQueryColorpickerStatic.Color
public set: boolean
public copy(): JQueryColorpickerStatic.Color
Returns
JQueryColorpickerStatic.Color
public distance(color: JQueryColorpickerStatic.Color): number
Parameters
-
color: JQueryColorpickerStatic.Color
Returns
number
public equals(color: JQueryColorpickerStatic.Color): boolean
Parameters
-
color: JQueryColorpickerStatic.Color
Returns
boolean
public getAlpha(): number
Returns
number
public getCMYK(): CMYK
Returns
CMYK
public getChannels(): { A: number; B: number; L: number; a: number; b: number; c: number; g: number; h: number; k: number; m: number; r: number; s: number; v: number; y: number; }
Returns
{ A: number; B: number; L: number; a: number; b: number; c: number; g: number; h: number; k: number; m: number; r: number; s: number; v: number; y: number; }
public getHSL(): HSL
Returns
HSL
public getHSV(): HSV
Returns
HSV
public getLAB(): LAB
Returns
LAB
public getRGB(): RGB
Returns
RGB
public getSpaces(): { cmyk: JQueryColorpickerStatic.CMYK; hsl: JQueryColorpickerStatic.HSL; hsv: JQueryColorpickerStatic.HSV; lab: JQueryColorpickerStatic.LAB; rgb: JQueryColorpickerStatic.RGB; }
Returns
{ cmyk: JQueryColorpickerStatic.CMYK; hsl: JQueryColorpickerStatic.HSL; hsv: JQueryColorpickerStatic.HSV; lab: JQueryColorpickerStatic.LAB; rgb: JQueryColorpickerStatic.RGB; }
public limit(steps: number)
Parameters
public normalize(): JQueryColorpickerStatic.Color
Returns
JQueryColorpickerStatic.Color
public setAlpha(a: number): JQueryColorpickerStatic.Color
Parameters
Returns
JQueryColorpickerStatic.Color
public setCMYK(c: number, m: number, y: number, k: number): JQueryColorpickerStatic.Color
Parameters
-
c: number
-
m: number
-
y: number
-
k: number
Returns
JQueryColorpickerStatic.Color
public setHSL(h: number, s: number, l: number): JQueryColorpickerStatic.Color
Parameters
-
h: number
-
s: number
-
l: number
Returns
JQueryColorpickerStatic.Color
public setHSV(h: number, s: number, v: number): JQueryColorpickerStatic.Color
Parameters
-
h: number
-
s: number
-
v: number
Returns
JQueryColorpickerStatic.Color
public setLAB(l: number, a: number, b: number): JQueryColorpickerStatic.Color
Parameters
-
l: number
-
a: number
-
b: number
Returns
JQueryColorpickerStatic.Color
public setRGB(r: number, g: number, b: number): JQueryColorpickerStatic.Color
Parameters
-
r: number
-
g: number
-
b: number
Returns
JQueryColorpickerStatic.Color
public setSpaces(new_spaces: any): JQueryColorpickerStatic.Color
Parameters
Returns
JQueryColorpickerStatic.Color
public toCSS(): string
Returns
string
public toHEX(): string
Returns
string