Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

Hierarchy

Implements

Index

Methods

Abstract alpha

  • alpha(): number
  • alpha(a: number): Color

Abstract brighter

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

contrast

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

Abstract darker

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

Abstract debug

Abstract equals

  • equals(other: unknown): boolean

Abstract hashCode

  • hashCode(): number

Abstract hsl

Abstract isDefined

  • isDefined(): boolean

Abstract lightness

  • lightness(): number

Abstract rgb

Abstract toHexString

  • toHexString(): string

Abstract toString

  • toString(): string

Static black

Static form

Static fromAny

Static fromName

  • fromName(name: string): Color | undefined

Static fromValue

  • fromValue(value: Value): Color | undefined

Static hsl

Static parse

  • parse(string: string): Color

Static rgb

Static transparent

  • transparent(alpha?: undefined | number): Color

Static white