Module that handles colors and their management.  
More...
 | 
| int  | Color::new (int r, int g, int b, int a) | 
|   | Create a new color.  
  | 
|   | 
| int  | Color::getR (int clr) | 
|   | Return the R channel value of a color.  
  | 
|   | 
| int  | Color::getG (int clr) | 
|   | Return the G channel value of a color.  
  | 
|   | 
| int  | Color::getB (int clr) | 
|   | Return the B channel value of a color.  
  | 
|   | 
| int  | Color::getA (int clr) | 
|   | Return the A channel value of a color.  
  | 
|   | 
Module that handles colors and their management. 
◆ new()
      
        
          | int Color::new  | 
          ( | 
          int  | 
          r,  | 
        
        
           | 
           | 
          int  | 
          g,  | 
        
        
           | 
           | 
          int  | 
          b,  | 
        
        
           | 
           | 
          int  | 
          a  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Create a new color. 
- Usage example:
 my_color = 
Color.
new(255, 200, 100, 255)
 
Definition luaColor.cpp:6
 
int new(int r, int g, int b, int a)
Create a new color.
 
- Parameters
 - 
  
    | r | - R channel value.  | 
    | g | - G channel value.  | 
    | b | - B channel value.  | 
    | a | - A channel value (optional). | 
  
   
- Returns
 - The combined RGBA color. 
 
 
 
◆ getR()
      
        
          | int Color::getR  | 
          ( | 
          int  | 
          clr | ) | 
           | 
        
      
 
Return the R channel value of a color. 
- Usage example:
 
int getR(int clr)
Return the R channel value of a color.
 
 
- Parameters
 - 
  
  
 
- Returns
 - The R channel value of the color. 
 
 
 
◆ getG()
      
        
          | int Color::getG  | 
          ( | 
          int  | 
          clr | ) | 
           | 
        
      
 
Return the G channel value of a color. 
- Usage example:
 
int getG(int clr)
Return the G channel value of a color.
 
 
- Parameters
 - 
  
  
 
- Returns
 - The G channel value of the color. 
 
 
 
◆ getB()
      
        
          | int Color::getB  | 
          ( | 
          int  | 
          clr | ) | 
           | 
        
      
 
Return the B channel value of a color. 
- Usage example:
 
int getB(int clr)
Return the B channel value of a color.
 
 
- Parameters
 - 
  
  
 
- Returns
 - The B channel value of the color. 
 
 
 
◆ getA()
      
        
          | int Color::getA  | 
          ( | 
          int  | 
          clr | ) | 
           | 
        
      
 
Return the A channel value of a color. 
- Usage example:
 
int getA(int clr)
Return the A channel value of a color.
 
 
- Parameters
 - 
  
  
 
- Returns
 - The A channel value of the color.