Core/Color: Add dark colors

This commit is contained in:
SirLynix 2024-01-16 14:06:57 +01:00
parent 8ca7c2e8ee
commit c8776bc950
2 changed files with 18 additions and 0 deletions

View File

@ -73,6 +73,9 @@ namespace Nz
static constexpr Color Black();
static constexpr Color Blue();
static constexpr Color Cyan();
static constexpr Color DarkBlue();
static constexpr Color DarkGreen();
static constexpr Color DarkRed();
static constexpr Color Gray();
static constexpr Color Green();
static constexpr Color Magenta();

View File

@ -625,6 +625,21 @@ namespace Nz
return Color(0.f, 1.f, 1.f);
}
constexpr Color Color::DarkBlue()
{
return Color(0.f, 0.f, 139.f / 255.f);
}
constexpr Color Color::DarkGreen()
{
return Color(0.f, 100.f / 255.f, 0.f);
}
constexpr Color Color::DarkRed()
{
return Color(139.f / 255.f, 0.f, 0.f);
}
constexpr Color Color::Gray()
{
return Color(80.f / 255.f, 80.f / 255.f, 80.f / 255.f);