Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RgbColor

Hierarchy

Implements

Index

Constructors

constructor

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

Properties

a

a: number

b

b: number

g

g: number

r

r: number

Methods

alpha

  • alpha(): number
  • alpha(a: number): RgbColor

brighter

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

contrast

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

darker

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

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): RgbColor | undefined

Static hsl

Static parse

Static rgb

Static transparent

Static white