Harmony
Scripting Interface Documentation
ColorRGBA Class Reference

The ColorRGBA JavaScript class. Represent an 8 bits per channel Red Green Blue Alpha colour. More...

Public Member Functions

 ColorRGBA ()
 Create a new default ColorRGBA (ie. opaque white). More...
 
 ColorRGBA (double r, double g, double b, double a)
 Create a new ColorRGBA. More...
 

Properties

int r
 red value [ 0, 255 ] More...
 
int g
 green value [ 0, 255 ] More...
 
int b
 blue value [ 0, 255 ] More...
 
int a
 alpha value [ 0, 255 ] More...
 

Detailed Description

The ColorRGBA JavaScript class. Represent an 8 bits per channel Red Green Blue Alpha colour.

The ColorRGBA class defines a four-dimensional container for colors. ColorRGBA objects can be instantiated in the scripting environment.

Constructor & Destructor Documentation

◆ ColorRGBA() [1/2]

ColorRGBA::ColorRGBA ( )

Create a new default ColorRGBA (ie. opaque white).

◆ ColorRGBA() [2/2]

ColorRGBA::ColorRGBA ( double  r,
double  g,
double  b,
double  a 
)

Create a new ColorRGBA.

Parameters
rRed value
gGreen value
bBlue value
aAlpha value

Property Documentation

◆ a

int ColorRGBA::a
readwrite

alpha value [ 0, 255 ]

◆ b

int ColorRGBA::b
readwrite

blue value [ 0, 255 ]

◆ g

int ColorRGBA::g
readwrite

green value [ 0, 255 ]

◆ r

int ColorRGBA::r
readwrite

red value [ 0, 255 ]