diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/core/Color.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/core/Color.hpp b/include/core/Color.hpp index 0f93a55..e4116f2 100644 --- a/include/core/Color.hpp +++ b/include/core/Color.hpp @@ -5,6 +5,7 @@ #include <cmath> +#include "Defs.hpp" #include "String.hpp" namespace godot { @@ -73,6 +74,23 @@ public: return components[idx]; } + Color operator+(const Color &p_color) const; + void operator+=(const Color &p_color); + + Color operator-() const; + Color operator-(const Color &p_color) const; + void operator-=(const Color &p_color); + + Color operator*(const Color &p_color) const; + Color operator*(const real_t &rvalue) const; + void operator*=(const Color &p_color); + void operator*=(const real_t &rvalue); + + Color operator/(const Color &p_color) const; + Color operator/(const real_t &rvalue) const; + void operator/=(const Color &p_color); + void operator/=(const real_t &rvalue); + void invert(); void contrast(); |
