#include <Color.hpp>
Public Member Functions | |
| Color () | |
| Default constructor. | |
| Color (Uint8 R, Uint8 G, Uint8 B, Uint8 A=255) | |
| Construct the color from its 4 RGBA components. | |
| Color & | operator+= (const Color &Other) |
| Operator += overload to add a color. | |
| Color & | operator *= (const Color &Other) |
| Operator *= overload to modulate a color. | |
| bool | operator== (const Color &Other) const |
| Compare two colors (for equality). | |
| bool | operator!= (const Color &Other) const |
| Compare two colors (for difference). | |
Public Attributes | |
| Uint8 | r |
| Red component. | |
| Uint8 | g |
| Green component. | |
| Uint8 | b |
| Blue component. | |
| Uint8 | a |
| Alpha (transparency) component. | |
Static Public Attributes | |
| static const Color | Black |
| Black predefined color. | |
| static const Color | White |
| White predefined color. | |
| static const Color | Red |
| Red predefined color. | |
| static const Color | Green |
| Green predefined color. | |
| static const Color | Blue |
| Blue predefined color. | |
| static const Color | Yellow |
| Yellow predefined color. | |
| static const Color | Magenta |
| Magenta predefined color. | |
| static const Color | Cyan |
| Cyan predefined color. | |
Definition at line 39 of file Color.hpp.
| sf::Color::Color | ( | ) |
Default constructor.
| sf::Color::Color | ( | Uint8 | R, | |
| Uint8 | G, | |||
| Uint8 | B, | |||
| Uint8 | A = 255 | |||
| ) |
Construct the 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) (255 by default) |
Operator += overload to add a color.
| Other | : Color to add |
Operator *= overload to modulate a color.
| Other | : Color to modulate |
| bool sf::Color::operator== | ( | const Color & | Other | ) | const |
Compare two colors (for equality).
| Other | : Color to compare |
| bool sf::Color::operator!= | ( | const Color & | Other | ) | const |
Compare two colors (for difference).
| Other | : Color to compare |
const Color sf::Color::Black [static] |
const Color sf::Color::White [static] |
const Color sf::Color::Red [static] |
const Color sf::Color::Green [static] |
const Color sf::Color::Blue [static] |
const Color sf::Color::Yellow [static] |
const Color sf::Color::Magenta [static] |
const Color sf::Color::Cyan [static] |
| Uint8 sf::Color::r |
| Uint8 sf::Color::g |
| Uint8 sf::Color::b |
| Uint8 sf::Color::a |