Class CSSHexColor

Hierarchy
Index
Constructors

constructor

  • new CSSHexColor(r: string, g: string, b: string, a?: string): CSSHexColor
Properties

a

a: string

b

b: string

g

g: string

r

r: string
Methods

isOpaque

  • isOpaque(): boolean

to

toString

  • toString(): string
Static

fromString

Static
Protected

hslToRgbNumeric

  • hslToRgbNumeric(h: number, s: number, l: number): number[]
Static
Protected

resolveNumericAlpha

  • resolveNumericAlpha(alpha?: number | CSSUnitValue): number
Static
Protected

rgbToHslNumeric

  • rgbToHslNumeric(r: number, g: number, b: number): number[]