#include <Color.h>
|  | 
| float | r | 
|  | 
| float | g | 
|  | 
| float | b | 
|  | 
| float | a | 
|  | 
◆ CColor() [1/2]
◆ CColor() [2/2]
  
  | 
        
          | CColor::CColor | ( | float | cr, |  
          |  |  | float | cg, |  
          |  |  | float | cb, |  
          |  |  | float | ca |  
          |  | ) |  |  |  | inline | 
 
 
◆ AsFloatArray()
  
  | 
        
          | PS::span< const float > CColor::AsFloatArray | ( |  | ) | const |  | inline | 
 
 
◆ AsSColor4ub()
◆ operator bool()
  
  | 
        
          | CColor::operator bool | ( |  | ) | const |  | inline | 
 
Returns whether this has been set to a valid color. 
 
 
◆ operator!=()
  
  | 
        
          | bool CColor::operator!= | ( | const CColor & | color | ) | const |  | inline | 
 
 
◆ operator==()
      
        
          | bool CColor::operator== | ( | const CColor & | color | ) | const | 
      
 
 
◆ ParseString()
      
        
          | bool CColor::ParseString | ( | const CStr8 & | value, | 
        
          |  |  | int | defaultAlpha = 255 | 
        
          |  | ) |  |  | 
      
 
Try to parse Value as a color. 
Important: This function does not modify the value if parsing fails.
Returns true on success, false otherwise. Leaves the color unchanged if it failed. 
- Parameters
- 
  
    | value | Should be "r g b" or "r g b a" where each value is an integer in [0,255]. |  | defaultAlpha | The alpha value that is used if the format of Valueis "r g b". |  
 
 
 
The documentation for this struct was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/graphics/Color.h
- /home/docker/jenkins/workspace/technical-docs/source/graphics/Color.cpp