IceShard
1
A personal game engine project, with development focused on 2D/2.5D games.
Toggle main menu visibility
Loading...
Searching...
No Matches
utils
public
ice
colors.hxx
Go to the documentation of this file.
1
3
4
#pragma once
5
#include <
ice/detail/color_data.hxx
>
6
7
namespace
ice
8
{
9
10
namespace
color
11
{
12
13
using
OkLAB
=
ice::detail::ColorData<ColorFormat::OkLAB>
;
14
using
OkLCH
=
ice::detail::ColorData<ColorFormat::OkLCH>
;
15
using
OkLCHu8
=
ice::detail::ColorData<ColorFormat::OkLCHu8>
;
16
using
LRGB
=
ice::detail::ColorData<ColorFormat::LinearRGB>
;
17
using
LRGBu8
=
ice::detail::ColorData<ColorFormat::LinearRGBu8>
;
18
using
SRGB
=
ice::detail::ColorData<ColorFormat::StandardRGB>
;
19
20
// Static defined colors
21
static
constexpr
OkLCH
White
{ 1.0f, 0.0f, 0.0_deg, 1.0f };
22
static
constexpr
OkLCH
Black
{ 0.0f, 0.0f, 0.0_deg, 1.0f };
23
24
static
constexpr
OkLCH
Red
{ 0.628f, 0.2577f, 29.23f, 1.0f };
25
static
constexpr
OkLCH
Green
{ 0.8664f, 0.294827f, 142.4953f, 1.0f };
26
static
constexpr
OkLCH
Blue
{ 0.452f, 0.313214f, 264.052f, 1.0f };
27
28
static
constexpr
OkLCH
Yellow
{ 0.968f, 0.211f, 109.77f, 1.0f };
29
static
constexpr
OkLCH
Magenta
{ 0.7017f, 0.3225f, 328.36f, 1.0f };
30
static
constexpr
OkLCH
Cyan
{ 0.9054f, 0.15455f, 194.769f, 1.0f };
31
32
}
// namespace color
33
34
using
Color
=
ice::color::OkLCH
;
35
using
ShaderColor
=
ice::color::LRGB
;
36
37
}
// namespace ice
color_data.hxx
ice::color
Definition
colors.hxx:11
ice::color::Black
static constexpr OkLCH Black
Definition
colors.hxx:22
ice::color::Blue
static constexpr OkLCH Blue
Definition
colors.hxx:26
ice::color::OkLCHu8
ice::detail::ColorData< ColorFormat::OkLCHu8 > OkLCHu8
Definition
colors.hxx:15
ice::color::LRGBu8
ice::detail::ColorData< ColorFormat::LinearRGBu8 > LRGBu8
Definition
colors.hxx:17
ice::color::Red
static constexpr OkLCH Red
Definition
colors.hxx:24
ice::color::White
static constexpr OkLCH White
Definition
colors.hxx:21
ice::color::SRGB
ice::detail::ColorData< ColorFormat::StandardRGB > SRGB
Definition
colors.hxx:18
ice::color::LRGB
ice::detail::ColorData< ColorFormat::LinearRGB > LRGB
Definition
colors.hxx:16
ice::color::OkLCH
ice::detail::ColorData< ColorFormat::OkLCH > OkLCH
Definition
colors.hxx:14
ice::color::Green
static constexpr OkLCH Green
Definition
colors.hxx:25
ice::color::OkLAB
ice::detail::ColorData< ColorFormat::OkLAB > OkLAB
Definition
colors.hxx:13
ice::color::Yellow
static constexpr OkLCH Yellow
Definition
colors.hxx:28
ice::color::Cyan
static constexpr OkLCH Cyan
Definition
colors.hxx:30
ice::color::Magenta
static constexpr OkLCH Magenta
Definition
colors.hxx:29
ice
SPDX-License-Identifier: MIT.
Definition
array.hxx:12
ice::ShaderColor
ice::color::LRGB ShaderColor
Definition
colors.hxx:35
ice::Color
ice::color::OkLCH Color
Definition
colors.hxx:34
ice::detail::ColorData
Definition
color_data.hxx:11
Generated by
1.18.0