Interface JQueryColorpickerStatic

Index

Interfaces

Properties

Interfaces

CMYK: CMYK

public c: number

public k: number

public m: number

public y: number

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

  • steps: number

public normalize(): JQueryColorpickerStatic.Color

Returns

JQueryColorpickerStatic.Color

public setAlpha(a: number): JQueryColorpickerStatic.Color

Parameters

  • a: number

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

  • new_spaces: any

Returns

JQueryColorpickerStatic.Color

public toCSS(): string

Returns

string

public toHEX(): string

Returns

string

HSL: HSL

public h: number

public l: number

public s: number

HSV: HSV

public h: number

public s: number

public v: number

LAB: LAB

public a: number

public b: number

public l: number

RGB: RGB

public b: number

public g: number

public r: number

Properties

public limits: { [name: string]: (color: any) => void; }

(): (color: any) => void

Returns

(color: any) => void

public parsers: { [name: string]: (color: any) => any; }

(): (color: any) => any

Returns

(color: any) => any

public parts: { [name: string]: (inst: any) => any; }

(): (inst: any) => any

Returns

(inst: any) => any

public partslists: { [name: string]: string[]; }

(): Array<string>

Returns

Array<string>

public regional: { [key: string]: string; }

(): string

Returns

string

public swatches: { [swatch: string]: { [name: string]: JQueryColorpickerStatic.RGB; }; }

(): { [name: string]: JQueryColorpickerStatic.RGB; }

Returns

{ [name: string]: JQueryColorpickerStatic.RGB; }

public writers: { [name: string]: (color: any, that: any) => any; }

(): (color: any, that: any) => any

Returns

(color: any, that: any) => any