|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
RGBA color representation with blending and manipulation operations. More...
#include <algorithm>#include <cstdint>#include <ostream>#include <stdexcept>#include <type_traits>#include <utility>

Go to the source code of this file.
Classes | |
| class | utility::graphic::Color< Type > |
| RGBA color with arithmetic type components. More... | |
Namespaces | |
| namespace | utility |
| The utility namespace contains classes and functions for the utility project. | |
Concepts | |
| concept | utility::graphic::CanBeColorComponent |
| Concept to ensure the type can be used as a color component. | |
Typedefs | |
| using | utility::graphic::Color32Bit = Color< std::uint8_t > |
| Common 32-bit RGBA color type with uint8_t components. | |
| using | utility::graphic::ColorFloat = Color< float > |
| Common floating-point RGBA color type with float components. | |
| using | utility::graphic::ColorDouble = Color< double > |
| Common double-precision RGBA color type with double components. | |
Functions | |
| std::ostream & | utility::graphic::operator<< (std::ostream &stream, const Color32Bit &color) |
| Stream insertion operator for Color. | |
| std::ostream & | utility::graphic::operator<< (std::ostream &stream, const ColorFloat &color) |
| Stream insertion operator for Color. | |
| std::ostream & | utility::graphic::operator<< (std::ostream &stream, const ColorDouble &color) |
| Stream insertion operator for Color. | |
RGBA color representation with blending and manipulation operations.
Declares graphic::Color<Type>, supporting RGBA color components with operations for blending, grayscale conversion, and color manipulation.
Definition in file color.hpp.
| using utility::graphic::Color32Bit = typedef Color<std::uint8_t> |
| using utility::graphic::ColorDouble = typedef Color<double> |
| using utility::graphic::ColorFloat = typedef Color<float> |
| std::ostream & utility::graphic::operator<< | ( | std::ostream & | stream, |
| const Color32Bit & | color | ||
| ) |
| std::ostream & utility::graphic::operator<< | ( | std::ostream & | stream, |
| const ColorDouble & | color | ||
| ) |
| std::ostream & utility::graphic::operator<< | ( | std::ostream & | stream, |
| const ColorFloat & | color | ||
| ) |