Parametritzant colorets de varios llocs
This commit is contained in:
@@ -42,7 +42,7 @@ struct Color
|
||||
constexpr Color() : r(0), g(0), b(0), a(255) {}
|
||||
explicit constexpr Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha = 255) : r(red), g(green), b(blue), a(alpha) {}
|
||||
|
||||
constexpr Color getInverse() const { return Color(255 - r, 255 - g, 255 - b, a); }
|
||||
constexpr Color inverse() const { return Color(255 - r, 255 - g, 255 - b, a); }
|
||||
constexpr Color lighten(int amount = 50) const
|
||||
{
|
||||
return Color(
|
||||
@@ -176,12 +176,6 @@ constexpr Color SHADOW_TEXT_COLOR = Color(0X43, 0X43, 0X4F);
|
||||
|
||||
constexpr Color FLASH_COLOR = Color(0XFF, 0XFF, 0XFF);
|
||||
|
||||
constexpr Color ORANGE_COLOR = Color(0XFF, 0X7A, 0X00);
|
||||
constexpr Color ORANGE_SOFT_COLOR = Color(0XFF, 0XA0, 0X33);
|
||||
constexpr Color ORANGE_SHADOW_COLOR = ORANGE_SOFT_COLOR.darken(100);
|
||||
|
||||
constexpr Color GREEN_COLOR = Color(0X5B, 0XEC, 0X95);
|
||||
|
||||
constexpr Color BLUE_SKY_COLOR = Color(0X02, 0X88, 0XD1);
|
||||
constexpr Color PINK_SKY_COLOR = Color(0XFF, 0X6B, 0X97);
|
||||
constexpr Color GREEN_SKY_COLOR = Color(0X00, 0X79, 0X6B);
|
||||
|
||||
Reference in New Issue
Block a user