Commit f00c7bab authored by Romain Bignon's avatar Romain Bignon

add method Invert

parent a07321b8
......@@ -103,3 +103,12 @@ SDL_Color Color::GetSDLColor() const{
return sdlColor;
}
Color Color::Invert() const
{
Color c(0xff - red,
0xff - green,
0xff - blue,
alpha);
return c;
}
......@@ -71,6 +71,8 @@ public:
Uint8 GetBlue() const;
Uint8 GetAlpha() const;
Color Invert() const;
SDL_Color GetSDLColor() const;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment