Python Script Engine  8.3
GL Studio Editor Python Script API
GlsColor Class Reference

Public Member Functions

 GlsColor ()
 
 GlsColor (int r, int g, int b, int a=255)
 
None R (int val)
 
None G (int val)
 
None B (int val)
 
None A (int val)
 
int R (None)
 
int G (None)
 
int B (None)
 
int A (None)
 

Detailed Description

Python extension for the GlsColor editor class (was formerly glsColor, which still exists for backwards compatiblity)

Since
GL Studio 6.2.1

Constructor & Destructor Documentation

◆ GlsColor() [1/2]

GlsColor::GlsColor ( )

Default Constructor.

◆ GlsColor() [2/2]

GlsColor::GlsColor ( int  r,
int  g,
int  b,
int  a = 255 
)

Construct a color from red, green, blue, and optionally alpha values.

Member Function Documentation

◆ A() [1/2]

None GlsColor::A ( int  val)

Set the Alpha component of this color.

Parameters
valThe new value for the component

◆ A() [2/2]

int GlsColor::A ( None  )
Returns
The Alpha component of this color

◆ B() [1/2]

None GlsColor::B ( int  val)

Set the Blue component of this color.

Parameters
valThe new value for the component

◆ B() [2/2]

int GlsColor::B ( None  )
Returns
The Blue component of this color

◆ G() [1/2]

None GlsColor::G ( int  val)

Set the Green component of this color.

Parameters
valThe new value for the component

◆ G() [2/2]

int GlsColor::G ( None  )
Returns
The Green component of this color

◆ R() [1/2]

None GlsColor::R ( int  val)

Set the Red component of this color.

Parameters
valThe new value for the component

◆ R() [2/2]

int GlsColor::R ( None  )
Returns
The Red component of this color

The documentation for this class was generated from the following file: