Module vrOSGTypes :: Class Color4f
[frames] | no frames]

Class Color4f

 object --+    
          |    
??.instance --+
              |
             Color4f

Instance Methods
 
__init__(r, g, b, a)
The constructor of the Color4f class.
 
__reduce__()
 
__str__()
float
alpha()
Returns the alpha component.
float
blue()
Returns the blue component.
float
green()
Returns the green component.
float
red()
Returns the red component.

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 40
Method Details

__init__(r, g, b, a)
(Constructor)

 

The constructor of the Color4f class.

Parameters:
  • r (float) - The red component.
  • g (float) - The green component.
  • b (float) - The blue component.
  • a (float) - The alpha component.
Overrides: object.__init__

__reduce__()

 
Overrides: object.__reduce__
(inherited documentation)

__str__()
(Informal representation operator)

 
Overrides: object.__str__
(inherited documentation)

alpha()

 

Returns the alpha component.

Returns: float
The alpha component.

blue()

 

Returns the blue component.

Returns: float
The blue component.

green()

 

Returns the green component.

Returns: float
The green component.

red()

 

Returns the red component.

Returns: float
The red component.