Go to the source code of this file.
Add two colors. 
- Parameters
- 
  
    | color1 | First color |  | color2 | Second color |  
 
- Returns
- Component-wise saturated addition of the two colors 
 
 
Construct the color from 32-bit unsigned integer. 
- Parameters
- 
  
    | color | Number containing the RGBA components (in that order) |  
 
- Returns
- sfColor constructed from the 32-bit unsigned integer 
 
 
Construct a color from its 3 RGB components. 
- Parameters
- 
  
    | red | Red component (0 .. 255) |  | green | Green component (0 .. 255) |  | blue | Blue component (0 .. 255) |  
 
- Returns
- sfColor constructed from the components 
 
 
Construct a color from its 4 RGBA components. 
- Parameters
- 
  
    | red | Red component (0 .. 255) |  | green | Green component (0 .. 255) |  | blue | Blue component (0 .. 255) |  | alpha | Alpha component (0 .. 255) |  
 
- Returns
- sfColor constructed from the components 
 
 
Modulate two colors. 
- Parameters
- 
  
    | color1 | First color |  | color2 | Second color |  
 
- Returns
- Component-wise multiplication of the two colors 
 
 
Subtract two colors. 
- Parameters
- 
  
    | color1 | First color |  | color2 | Second color |  
 
- Returns
- Component-wise saturated subtraction of the two colors 
 
 
Convert a color to a 32-bit unsigned integer. 
- Returns
- Color represented as a 32-bit unsigned integer 
 
 
Black predefined color. 
Definition at line 47 of file Color.h.
 
 
Blue predefined color. 
Definition at line 51 of file Color.h.
 
 
Cyan predefined color. 
Definition at line 54 of file Color.h.
 
 
Green predefined color. 
Definition at line 50 of file Color.h.
 
 
Magenta predefined color. 
Definition at line 53 of file Color.h.
 
 
Red predefined color. 
Definition at line 49 of file Color.h.
 
 
Transparent (black) predefined color. 
Definition at line 55 of file Color.h.
 
 
White predefined color. 
Definition at line 48 of file Color.h.
 
 
Yellow predefined color. 
Definition at line 52 of file Color.h.