Skip to content

Commit

Permalink
fixing my autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Knoficooki committed Jan 8, 2025
1 parent dc71a41 commit 07fbc57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/Color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ namespace raylib {
*/
class Color : public ::Color {
public:
Color(const ::Color& color) : ::Color{color.r, color.g, color.b, color.a} {}
Color(const ::Color& color) : ::Color{color.r, color.g, color.b, color.a} { }

Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = 255)
: ::Color{red, green, blue, alpha} {};
: ::Color{red, green, blue, alpha} { };

/**
* Black.
*/
Color() : ::Color{0, 0, 0, 255} {};
Color() : ::Color{0, 0, 0, 255} { };

/**
* Returns a Color from HSV values
Expand All @@ -36,9 +36,9 @@ class Color : public ::Color {
/**
* Get Color structure from hexadecimal value
*/
explicit Color(unsigned int hexValue) : ::Color(::GetColor(hexValue)) {}
explicit Color(unsigned int hexValue) : ::Color(::GetColor(hexValue)) { }

Color(void* srcPtr, int format) : ::Color(::GetPixelColor(srcPtr, format)) {}
Color(void* srcPtr, int format) : ::Color(::GetPixelColor(srcPtr, format)) { }

/**
* Returns hexadecimal value for a Color
Expand Down Expand Up @@ -67,7 +67,7 @@ class Color : public ::Color {
/**
* Returns Color from normalized values [0..1]
*/
explicit Color(::Vector4 normalized) : Color(::ColorFromNormalized(normalized)) {}
explicit Color(::Vector4 normalized) : Color(::ColorFromNormalized(normalized)) { }

/**
* Returns HSV values for a Color
Expand Down

0 comments on commit 07fbc57

Please sign in to comment.