Namespace color::constant::x11

TOC

gray, green, maroon, purple,

Description

Contain constants and types to makes instancing easy.

Note

All names will produce values as noted at :
Only distinctively different colors than w3c are in this namespace.

List

    gray_t
Description
Types to construct gray. This is 75% gray.
Example
::color::rgb<std::uint8_t> r{ ::color::contant::x11::gray_t{} };
::color::hsl<float> h;
h = ::color::contant::x11::gray_t{};
Note
This is just type. No additional memory are consumed or additional calculation involved.
    green_t
Description
Types to construct green color.
Example
::color::rgb<std::uint8_t> r{ ::color::contant::x11::green_t{} };
::color::hsl<float> h;
h = ::color::contant::x11::green_t{};
Note
This is just type. No additional memory are consumed or additional calculation involved.
Note
Equivalent to w3c::lime
    maroon_t
Description
Types to construct maroon color.
Example
::color::rgb<std::uint8_t> r{ ::color::contant::x11::maroon_t{} };
::color::hsl<float> h;
h = ::color::contant::x11::maroon_t{};
Note
This is just type. No additional memory are consumed or additional calculation involved.
    purple_t
Description
Types to construct purple color.
Example
::color::rgb<std::uint8_t> r{ ::color::contant::x11::purple_t{} };
::color::hsl<float> h;
h = ::color::contant::x11::purple_t{};
Note
This is just type. No additional memory are consumed or additional calculation involved.