Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly Abstract lightness

lightness: number

Static Brighter

Brighter: number

Static Darker

Darker: number

Methods

Abstract alpha

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

  • Parameters

    • a: number

    Returns Color

Abstract combine

  • Parameters

    • that: AnyColor
    • Optional scalar: number

    Returns Color

contrast

  • contrast(k?: number): Color
  • Parameters

    • Optional k: number

    Returns Color

Abstract darker

  • darker(k?: number): Color
  • Parameters

    • Optional k: number

    Returns Color

Abstract debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

Abstract equals

  • equals(other: unknown): boolean
  • Parameters

    • other: unknown

    Returns boolean

Abstract equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

Abstract hashCode

  • hashCode(): number
  • Returns number

Abstract hsl

  • Returns HslColor

interpolateTo

  • Parameters

    Returns Interpolator<Color>

  • Parameters

    • that: unknown

    Returns null | Interpolator<Color>

Abstract isDefined

  • isDefined(): boolean
  • Returns boolean

Abstract lighter

  • lighter(k?: number): Color
  • Parameters

    • Optional k: number

    Returns Color

Abstract plus

  • Parameters

    Returns Color

Abstract rgb

  • Returns RgbColor

Abstract times

  • times(scalar: number): Color
  • Parameters

    • scalar: number

    Returns Color

Abstract toHexString

  • toHexString(): string
  • Returns string

Abstract toString

  • toString(): string
  • Returns string

Static black

  • black(alpha?: number): Color
  • Parameters

    • Optional alpha: number

    Returns Color

Static forName

  • forName(name: string): null | Color
  • Parameters

    • name: string

    Returns null | Color

Static form

  • Returns Form<Color, AnyColor>

Static fromAny

  • Parameters

    Returns Color

Static fromInit

  • Parameters

    Returns Color

Static fromValue

  • Parameters

    Returns null | Color

Static hsl

  • Parameters

    • h: AnyAngle
    • s: number
    • l: number
    • Optional a: number

    Returns HslColor

Static isAny

  • isAny(value: unknown): value is AnyColor
  • Parameters

    • value: unknown

    Returns value is AnyColor

Static isInit

  • Parameters

    • value: unknown

    Returns value is ColorInit

Static parse

  • parse(string: string): Color
  • Parameters

    • string: string

    Returns Color

Static rgb

  • rgb(r: number, g: number, b: number, a?: number): RgbColor
  • Parameters

    • r: number
    • g: number
    • b: number
    • Optional a: number

    Returns RgbColor

Static transparent

  • Returns Color

Static white

  • white(alpha?: number): Color
  • Parameters

    • Optional alpha: number

    Returns Color

Generated using TypeDoc