Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Color

Index

Constructors

constructor

  • new Color(red: number, green: number, blue: number, alpha?: number): Color
  • Color constructor

    Parameters

    • red: number

      intensity of red (0..255)

    • green: number

      intensity of green (0..255)

    • blue: number

      intensity of blue (0..255)

    • alpha: number = 255

      alpha value (0..255)

    Returns Color

Properties

alpha

alpha: number = 255

blue

blue: number

green

green: number

red

red: number

Methods

toVec3

  • toVec3(): number[]

toVec4

  • toVec4(): number[]

Static fromHex

  • fromHex(color: string): Color

Generated using TypeDoc