summaryrefslogtreecommitdiff
path: root/src/helpers/Color.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-12-16 17:17:31 +0000
committerGitHub <noreply@github.com>2022-12-16 17:17:31 +0000
commit98a4fa2b0d79298fa29b048a3ba15c3bf5aed8cd (patch)
tree64e78342cf08e5f9ad87bd5f6ea36233133be7bb /src/helpers/Color.hpp
parent7c33c7fc64203c17b4f3625a16ae6b4774992c0e (diff)
Added clang format (#1239)
* clang-format stuff and format files
Diffstat (limited to 'src/helpers/Color.hpp')
-rw-r--r--src/helpers/Color.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helpers/Color.hpp b/src/helpers/Color.hpp
index 5844d322..d3cae689 100644
--- a/src/helpers/Color.hpp
+++ b/src/helpers/Color.hpp
@@ -3,24 +3,24 @@
#include "../includes.hpp"
class CColor {
-public:
+ public:
CColor();
CColor(float, float, float, float);
CColor(uint64_t);
- float r = 0, g = 0, b = 0, a = 255;
+ float r = 0, g = 0, b = 0, a = 255;
- uint64_t getAsHex();
+ uint64_t getAsHex();
- CColor operator- (const CColor& c2) const {
+ CColor operator-(const CColor& c2) const {
return CColor(r - c2.r, g - c2.g, b - c2.b, a - c2.a);
}
- CColor operator+ (const CColor& c2) const {
+ CColor operator+(const CColor& c2) const {
return CColor(r + c2.r, g + c2.g, b + c2.b, a + c2.a);
}
- CColor operator* (const float& v) const {
+ CColor operator*(const float& v) const {
return CColor(r * v, g * v, b * v, a * v);
}