|
C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
|
Describes a ARGB color. More...
#include <argb_color.hpp>
Public Member Functions | |
| constexpr | operator std::uint32_t () const noexcept |
| Converts a 32-bit unsigned integer. | |
| template<typename T > requires std::is_arithmetic_v<T> | |
| constexpr auto | normalize (T min, T max) const noexcept |
| Normalizes the data to a new range. | |
Public Attributes | |
| std::uint8_t | r {} |
| std::uint8_t | g {} |
| std::uint8_t | b {} |
| std::uint8_t | alpha {0xFF} |
Describes a ARGB color.
|
inlineconstexprnoexcept |
Normalizes the data to a new range.
| T | The type of the data in the new range. |
| min | The lower bound. |
| max | The upper bound. |