Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HslColor

Hierarchy

Implements

Index

Constructors

constructor

  • new HslColor(h: number, s: number, l: number, a?: number): HslColor

Properties

a

a: number

h

h: number

l

l: number

s

s: number

Methods

alpha

  • alpha(): number
  • alpha(a: number): HslColor

brighter

  • brighter(k?: undefined | number): HslColor

contrast

  • contrast(k?: undefined | number): Color

darker

  • darker(k?: undefined | number): HslColor

debug

equals

  • equals(other: unknown): boolean

hashCode

  • hashCode(): number

hsl

isDefined

  • isDefined(): boolean

lightness

  • lightness(): number

rgb

toHexString

  • toHexString(): string

toString

  • toString(): string

Static black

Static form

Static fromAny

Static fromName

  • fromName(name: string): Color | undefined

Static fromValue

  • fromValue(value: Value): HslColor | undefined

Static hsl

Static parse

Static rgb

Static transparent

Static white