colors/rgb.hpp

struct gviz::colors::RGB

Public Types

using octet_t = uint8_t

Public Functions

inline constexpr octet_t min() const noexcept
inline constexpr octet_t max() const noexcept
inline constexpr uint32_t to_binary() const noexcept
inline constexpr bool operator==(const RGB &other) const noexcept
inline constexpr bool operator!=(const RGB &other) const noexcept

Public Members

octet_t r = 0
octet_t g = 0
octet_t b = 0

Public Static Functions

static inline constexpr std::optional<RGB> make(octet_t red, octet_t green, octet_t blue) noexcept
static inline constexpr RGB from_binary(uint32_t value) noexcept
namespace gviz
namespace colors
file rgb.hpp
#include <>
#include <>
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard/colors
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard
dir /home/cthulhu/projects/repos/libgvizard/include