Class: TransparentColor

TransparentColor()

Class representing a color with transparency information.
Implements:
Color
Source:
tags/implements.js, line 25

Methods

rgb() → {Array.<number>}

Get the color as an array of red, green, and blue values, represented as decimal numbers between 0 and 1.
Implements:
Color#rgb
Source:
tags/implements.js, line 15
Returns:
An array containing the red, green, and blue values, in that order.
Type
number[]

rgba() → {Array.<number>}

Get the color as an array of red, green, blue, and alpha values, represented as decimal numbers between 0 and 1.
Source:
tags/implements.js, line 39
Returns:
An array containing the red, green, blue, and alpha values, in that order.
Type
number[]
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.