Skip to main content
Branch: Development

RGBA

Index

Constructors

constructor

  • new RGBA(r: number, g: number, b: number, a?: number): RGBA
  • new RGBA(array: [r: number, g: number, b: number, a?: number]): RGBA
  • new RGBA(rgba: { a?: number; b: number; g: number; r: number }): RGBA
  • Remarks

    The RGBA values are allowed to range from 0 to 255.

Properties

publica

a: number

a component of RGBA

publicb

b: number

b component of RGBA

publicg

g: number

g component of RGBA

publicr

r: number

r component of RGBA

publicstaticreadonlyblack

black: RGBA

publicstaticreadonlyblue

blue: RGBA

publicstaticreadonlyclear

clear: RGBA

publicstaticreadonlygreen

green: RGBA

publicstaticreadonlyred

red: RGBA

publicstaticreadonlywhite

white: RGBA

Methods

publictoARGB

  • toARGB(): RGBA

publictoArray

  • toArray(): [r: number, g: number, b: number, a: number]

publictoBGRA

  • toBGRA(): RGBA

publictoInt

  • toInt(): number

publictoString

  • toString(): string