Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

summary

様々な色空間の色を表現するクラス

Hierarchy

  • Color

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Color(r: any, g?: undefined | number, b?: undefined | number, a?: undefined | number): Color
  • Parameters

    • r: any
    • Optional g: undefined | number
    • Optional b: undefined | number
    • Optional a: undefined | number

    Returns Color

Properties

Private _a

_a: number = 255

Private _b

_b: number = 0

Private _g

_g: number = 0

Private _r

_r: number = 0

hex

hex: string = "#000000"

Accessors

a

  • get a(): number

b

  • get b(): number

g

  • get g(): number

r

  • get r(): number

rgba

  • get rgba(): string

Methods

toHexString

  • toHexString(): string

Generated using TypeDoc