From 9b7be419c9dcc6ebd1e504713c7b2676ca3d2fdf Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 23 Oct 2024 21:54:28 +0200 Subject: `clang-format` --- src/crepe/api/Color.cpp | 52 ++++++++++++++++--------------------------------- 1 file changed, 17 insertions(+), 35 deletions(-) (limited to 'src/crepe/api/Color.cpp') diff --git a/src/crepe/api/Color.cpp b/src/crepe/api/Color.cpp index c73ce6c..5c7d8cc 100644 --- a/src/crepe/api/Color.cpp +++ b/src/crepe/api/Color.cpp @@ -2,52 +2,34 @@ #include "Color.h" - using namespace crepe::api; -Color Color::white = Color(255,255,255,0); -Color Color::red = Color(255,0,0,0); -Color Color::green = Color(0,255,0,0); -Color Color::blue = Color(0,0,255,0); -Color Color::black = Color(0,0,0,0); -Color Color::cyan = Color(0,255,255,0); -Color Color::yellow = Color(255,255,0,0); -Color Color::magenta= Color(255,0,255,0); +Color Color::white = Color(255, 255, 255, 0); +Color Color::red = Color(255, 0, 0, 0); +Color Color::green = Color(0, 255, 0, 0); +Color Color::blue = Color(0, 0, 255, 0); +Color Color::black = Color(0, 0, 0, 0); +Color Color::cyan = Color(0, 255, 255, 0); +Color Color::yellow = Color(255, 255, 0, 0); +Color Color::magenta = Color(255, 0, 255, 0); -Color::Color(double red, double green, double blue, double alpha){ +Color::Color(double red, double green, double blue, double alpha) { this->a = alpha; this->r = red; this->g = green; this->b = blue; }; -const Color& Color::get_white(){ - return Color::white; -}; - -const Color& Color::get_red(){ - return Color::red; -}; -const Color& Color::get_green(){ - return Color::green; -}; -const Color& Color::get_blue(){ - return Color::blue; -}; +const Color & Color::get_white() { return Color::white; }; -const Color& Color::get_black(){ - return Color::black; -}; +const Color & Color::get_red() { return Color::red; }; +const Color & Color::get_green() { return Color::green; }; +const Color & Color::get_blue() { return Color::blue; }; -const Color& Color::get_cyan(){ - return Color::cyan; -}; +const Color & Color::get_black() { return Color::black; }; -const Color& Color::get_yellow(){ - return Color::yellow; -}; +const Color & Color::get_cyan() { return Color::cyan; }; -const Color& Color::get_magenta(){ - return Color::magenta; -}; +const Color & Color::get_yellow() { return Color::yellow; }; +const Color & Color::get_magenta() { return Color::magenta; }; -- cgit v1.2.3