#include <SFML/Config.h>Go to the source code of this file.
Data Structures | |
| struct | sfColor |
| sfColor is an utility class for manipulating colors More... | |
Functions | |
| CSFML_API sfColor | sfColor_FromRGB (sfUint8 R, sfUint8 G, sfUint8 B) |
| Construct a color from its 3 RGB components. | |
| CSFML_API sfColor | sfColor_FromRGBA (sfUint8 R, sfUint8 G, sfUint8 B, sfUint8 A) |
| Construct a color from its 4 RGBA components. | |
| CSFML_API sfColor | sfColor_Add (sfColor Color1, sfColor Color2) |
| Add two colors. | |
| CSFML_API sfColor | sfColor_Modulate (sfColor Color1, sfColor Color2) |
| Modulate two colors. | |
Variables | |
| CSFML_API sfColor | sfBlack |
| Define some common colors. | |
| CSFML_API sfColor | sfWhite |
| CSFML_API sfColor | sfRed |
| CSFML_API sfColor | sfGreen |
| CSFML_API sfColor | sfBlue |
| CSFML_API sfColor | sfYellow |
| CSFML_API sfColor | sfMagenta |
| CSFML_API sfColor | sfCyan |
Add two colors.
| Color1 | : First color | |
| Color2 | : Second color |
| CSFML_API sfColor sfColor_FromRGB | ( | sfUint8 | R, | |
| sfUint8 | G, | |||
| sfUint8 | B | |||
| ) |
Construct a color from its 3 RGB components.
| R | : Red component (0 .. 255) | |
| G | : Green component (0 .. 255) | |
| B | : Blue component (0 .. 255) |
| CSFML_API sfColor sfColor_FromRGBA | ( | sfUint8 | R, | |
| sfUint8 | G, | |||
| sfUint8 | B, | |||
| sfUint8 | A | |||
| ) |
Construct a color from its 4 RGBA components.
| R | : Red component (0 .. 255) | |
| G | : Green component (0 .. 255) | |
| B | : Blue component (0 .. 255) | |
| A | : Alpha component (0 .. 255) |
Modulate two colors.
| Color1 | : First color | |
| Color2 | : Second color |