GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::Color Class Reference

Floating-point linear RGBA color in the Rec. More...

#include <GREM/core/data/Color.hpp>

Public Types

enum class  TransferFunction : uint8_t { LINEAR , SRGB }
 Color transfer function. More...

Public Member Functions

constexpr Color () noexcept=default
 Construct a transparent color with a value of 0 in all components.
constexpr bool operator== (const Color &other) const noexcept=default
 Compare this color to another for equality.
constexpr vec3 toLinearRGB () const noexcept
 Convert the color to a vector with 3 components, XYZ, that are mapped from the color components RGB, respectively.
constexpr vec4 toLinearRGBA () const noexcept
 Convert the color to a vector with 4 components, XYZW, that are mapped from the color components RGBA, respectively.
constexpr u8vec3norm toSRGB () const noexcept
 Convert the color to a vector with 3 sRGB-encoded components, XYZ, that are mapped from the color components RGB, respectively.
constexpr vec3 toFloatSRGB () const noexcept
 Convert the color to a vector with 3 floating-point sRGB components, XYZ, that are mapped from the color components RGB, respectively.
constexpr u8vec4norm toSRGBA () const noexcept
 Convert the color to a vector with 3 sRGB-encoded components, XYZ, and 1 linear component, W, that are mapped from the color components RGBA, respectively.
constexpr vec4 toFloatSRGBA () const noexcept
 Convert the color to a vector with 3 floating-point sRGB components, XYZ, and 1 linear component, W, that are mapped from the color components RGBA, respectively.
constexpr float getAlpha () const noexcept
 Get the linear alpha component of the color.
constexpr void setAlpha (float newAlpha) noexcept
 Set the linear alpha component of the color.
constexpr Color & operator*= (const Color &other) noexcept
 Multiply the component values of this color with their respective component values in another color.
constexpr Color & operator*= (float coefficient) noexcept
 Multiply the component values of this color by a scalar.
constexpr Color & operator/= (const Color &other) noexcept
 Divide the component values of this color by their respective component values in another color.
constexpr Color & operator/= (float denominator) noexcept
 Divide the component values of this color by a scalar.
constexpr Color & operator*= (vec3 rgbCoefficients) noexcept
 Multiply the RGB component values of this color by the corresponding values in a 3-component vector.
constexpr Color & operator*= (vec4 rgbaCoefficients) noexcept
 Multiply the RGBA component values of this color by the corresponding values in a 4-component vector.
constexpr Color & operator/= (vec3 rgbDenominators) noexcept
 Divide the RGB component values of this color by the corresponding values in a 3-component vector.
constexpr Color & operator/= (vec4 rgbaDenominators) noexcept
 Divide the RGBA component values of this color by the corresponding values in a 4-component vector.

Static Public Member Functions

static constexpr float convertLinearToSRGB (float x)
 Convert a color component in linear space to the sRGB color space.
static constexpr vec3 convertLinearToSRGB (vec3 rgb)
 Convert a color in linear space to the sRGB color space.
static constexpr vec4 convertLinearToSRGB (vec4 rgba)
 Convert a color in linear space to the sRGB color space.
static constexpr float convertSRGBToLinear (float x)
 Convert a color component in the sRGB color space to linear space.
static constexpr vec3 convertSRGBToLinear (vec3 rgb)
 Convert a color in the sRGB color space to linear space.
static constexpr vec4 convertSRGBToLinear (vec4 rgba)
 Convert a color in the sRGB color space to linear space.
static constexpr vec4 convertStraightToPremultipliedAlpha (vec4 rgba)
 Convert a linear color from straight to pre-multiplied alpha.
static constexpr vec4 convertPremultipliedToStraightAlpha (vec4 rgba)
 Convert a linear color from pre-multiplied to straight alpha.
static constexpr Color fromLinear (float x, float a=1.0f) noexcept
 Create a grayscale color from a linear scalar.
static constexpr Color fromLinear (float r, float g, float b, float a=1.0f) noexcept
 Create a color from linear RGB components.
static constexpr Color fromLinear (vec3 rgb) noexcept
 Create a color from a vector of 3 components, XYZ, that map to the linear color components RGB, respectively.
static constexpr Color fromLinear (vec4 rgba) noexcept
 Construct a color from a vector of 4 components, XYZW, that map to the linear color components RGBA, respectively.
static constexpr Color fromLinear (vec3 rgb, float a) noexcept
 Create a color from a vector of 3 components, XYZ, and a scalar, A, that map to the linear color components RGBA, respectively.
static constexpr Color fromSRGB (u8norm r, u8norm g, u8norm b, u8norm a=1.0f) noexcept
 Create a color from sRGB-encoded components.
static constexpr Color fromSRGB (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) noexcept
 Create a color from unnormalized sRGB-encoded components.
static constexpr Color fromSRGB (u8vec3norm rgb, u8norm a=1.0f) noexcept
 Create a color from a vector of 3 sRGB-encoded components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.
static constexpr Color fromSRGB (u8vec3 rgb, uint8_t a=255) noexcept
 Create a color from a vector of 3 unnormalized sRGB-encoded components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.
static constexpr Color fromSRGB (vec3 rgb, float a=1.0f) noexcept
 Create a color from a vector of 3 floating-point sRGB components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.
static constexpr Color fromSRGB (u8vec4norm rgba) noexcept
 Create a color from a vector of 3 sRGB-encoded components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.
static constexpr Color fromSRGB (u8vec4 rgba) noexcept
 Create a color from a vector of 3 unnormalized sRGB-encoded components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.
static constexpr Color fromSRGB (vec4 rgba) noexcept
 Create a color from a vector of 3 floating-point sRGB components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.
static constexpr Color fromAlpha (float a) noexcept
 Create a color from a linear alpha component.

Static Public Attributes

static const Color INVISIBLE {}
static const Color ALICE_BLUE {vec4{0.87136712f, 0.93868573f, 1.00000000f, 1.0f}}
static const Color ANTIQUE_WHITE {vec4{0.95597335f, 0.83076988f, 0.67954247f, 1.0f}}
static const Color AQUA {vec4{0.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
static const Color AQUAMARINE {vec4{0.21223076f, 1.00000000f, 0.65837482f, 1.0f}}
static const Color AZURE {vec4{0.87136712f, 1.00000000f, 1.00000000f, 1.0f}}
static const Color BEIGE {vec4{0.91309865f, 0.91309865f, 0.71569350f, 1.0f}}
static const Color BISQUE {vec4{1.00000000f, 0.77582222f, 0.55201140f, 1.0f}}
static const Color BLACK {vec4{0.00000000f, 0.00000000f, 0.00000000f, 1.0f}}
static const Color BLANCHED_ALMOND {vec4{1.00000000f, 0.83076988f, 0.61049557f, 1.0f}}
static const Color BLUE {vec4{0.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
static const Color BLUE_VIOLET {vec4{0.25415209f, 0.02415763f, 0.76052450f, 1.0f}}
static const Color BROWN {vec4{0.37626212f, 0.02315337f, 0.02315337f, 1.0f}}
static const Color BURLY_WOOD {vec4{0.73046074f, 0.47932018f, 0.24228112f, 1.0f}}
static const Color CADET_BLUE {vec4{0.11443537f, 0.34191442f, 0.35153260f, 1.0f}}
static const Color CHARTREUSE {vec4{0.21223076f, 1.00000000f, 0.00000000f, 1.0f}}
static const Color CHOCOLATE {vec4{0.64447968f, 0.14126329f, 0.01298303f, 1.0f}}
static const Color CORAL {vec4{1.00000000f, 0.21223076f, 0.08021982f, 1.0f}}
static const Color CORNFLOWER_BLUE {vec4{0.12743768f, 0.30054379f, 0.84687323f, 1.0f}}
static const Color CORNSILK {vec4{1.00000000f, 0.93868573f, 0.71569350f, 1.0f}}
static const Color CRIMSON {vec4{0.71569350f, 0.00699541f, 0.04518620f, 1.0f}}
static const Color CYAN {vec4{0.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
static const Color DARK_BLUE {vec4{0.00000000f, 0.00000000f, 0.25818285f, 1.0f}}
static const Color DARK_CYAN {vec4{0.00000000f, 0.25818285f, 0.25818285f, 1.0f}}
static const Color DARK_GOLDEN_ROD {vec4{0.47932018f, 0.23839757f, 0.00334654f, 1.0f}}
static const Color DARK_GRAY {vec4{0.39675523f, 0.39675523f, 0.39675523f, 1.0f}}
static const Color DARK_GREY {vec4{0.39675523f, 0.39675523f, 0.39675523f, 1.0f}}
static const Color DARK_GREEN {vec4{0.00000000f, 0.12743768f, 0.00000000f, 1.0f}}
static const Color DARK_KHAKI {vec4{0.50888132f, 0.47353150f, 0.14702727f, 1.0f}}
static const Color DARK_MAGENTA {vec4{0.25818285f, 0.00000000f, 0.25818285f, 1.0f}}
static const Color DARK_OLIVE_GREEN {vec4{0.09084171f, 0.14702727f, 0.02842604f, 1.0f}}
static const Color DARK_ORANGE {vec4{1.00000000f, 0.26225066f, 0.00000000f, 1.0f}}
static const Color DARK_ORCHID {vec4{0.31854678f, 0.03189603f, 0.60382734f, 1.0f}}
static const Color DARK_RED {vec4{0.25818285f, 0.00000000f, 0.00000000f, 1.0f}}
static const Color DARK_SALMON {vec4{0.81484657f, 0.30498731f, 0.19461783f, 1.0f}}
static const Color DARK_SEA_GREEN {vec4{0.27467731f, 0.50288646f, 0.27467731f, 1.0f}}
static const Color DARK_SLATE_BLUE {vec4{0.06480327f, 0.04666509f, 0.25818285f, 1.0f}}
static const Color DARK_SLATE_GRAY {vec4{0.02842604f, 0.07818742f, 0.07818742f, 1.0f}}
static const Color DARK_SLATE_GREY {vec4{0.02842604f, 0.07818742f, 0.07818742f, 1.0f}}
static const Color DARK_TURQUOISE {vec4{0.00000000f, 0.61720656f, 0.63759687f, 1.0f}}
static const Color DARK_VIOLET {vec4{0.29613827f, 0.00000000f, 0.65140564f, 1.0f}}
static const Color DEEP_PINK {vec4{1.00000000f, 0.00699541f, 0.29177065f, 1.0f}}
static const Color DEEP_SKY_BLUE {vec4{0.00000000f, 0.52099557f, 1.00000000f, 1.0f}}
static const Color DIM_GRAY {vec4{0.14126329f, 0.14126329f, 0.14126329f, 1.0f}}
static const Color DIM_GREY {vec4{0.14126329f, 0.14126329f, 0.14126329f, 1.0f}}
static const Color DODGER_BLUE {vec4{0.01298303f, 0.27889426f, 1.00000000f, 1.0f}}
static const Color FIRE_BRICK {vec4{0.44520119f, 0.01599629f, 0.01599629f, 1.0f}}
static const Color FLORAL_WHITE {vec4{1.00000000f, 0.95597335f, 0.87136712f, 1.0f}}
static const Color FOREST_GREEN {vec4{0.01599629f, 0.25818285f, 0.01599629f, 1.0f}}
static const Color FUCHSIA {vec4{1.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
static const Color GAINSBORO {vec4{0.71569350f, 0.71569350f, 0.71569350f, 1.0f}}
static const Color GHOST_WHITE {vec4{0.93868573f, 0.93868573f, 1.00000000f, 1.0f}}
static const Color GOLD {vec4{1.00000000f, 0.67954247f, 0.00000000f, 1.0f}}
static const Color GOLDEN_ROD {vec4{0.70110189f, 0.37626212f, 0.01444384f, 1.0f}}
static const Color GRAY {vec4{0.21586050f, 0.21586050f, 0.21586050f, 1.0f}}
static const Color GREY {vec4{0.21586050f, 0.21586050f, 0.21586050f, 1.0f}}
static const Color GREEN {vec4{0.00000000f, 0.21586050f, 0.00000000f, 1.0f}}
static const Color GREEN_YELLOW {vec4{0.41788507f, 1.00000000f, 0.02842604f, 1.0f}}
static const Color HONEY_DEW {vec4{0.87136712f, 1.00000000f, 0.87136712f, 1.0f}}
static const Color HOT_PINK {vec4{1.00000000f, 0.14126329f, 0.45641102f, 1.0f}}
static const Color INDIAN_RED {vec4{0.61049557f, 0.10702310f, 0.10702310f, 1.0f}}
static const Color INDIGO {vec4{0.07036010f, 0.00000000f, 0.22322796f, 1.0f}}
static const Color IVORY {vec4{1.00000000f, 1.00000000f, 0.87136712f, 1.0f}}
static const Color KHAKI {vec4{0.87136712f, 0.79129794f, 0.26225066f, 1.0f}}
static const Color LAVENDER {vec4{0.79129794f, 0.79129794f, 0.95597335f, 1.0f}}
static const Color LAVENDER_BLUSH {vec4{1.00000000f, 0.87136712f, 0.91309865f, 1.0f}}
static const Color LAWN_GREEN {vec4{0.20155625f, 0.97344529f, 0.00000000f, 1.0f}}
static const Color LEMON_CHIFFON {vec4{1.00000000f, 0.95597335f, 0.61049557f, 1.0f}}
static const Color LIGHT_BLUE {vec4{0.41788507f, 0.68668531f, 0.79129794f, 1.0f}}
static const Color LIGHT_CORAL {vec4{0.87136712f, 0.21586050f, 0.21586050f, 1.0f}}
static const Color LIGHT_CYAN {vec4{0.74540421f, 1.00000000f, 1.00000000f, 1.0f}}
static const Color LIGHT_GOLDEN_ROD_YELLOW {vec4{0.95597335f, 0.95597335f, 0.64447968f, 1.0f}}
static const Color LIGHT_GRAY {vec4{0.65140564f, 0.65140564f, 0.65140564f, 1.0f}}
static const Color LIGHT_GREY {vec4{0.65140564f, 0.65140564f, 0.65140564f, 1.0f}}
static const Color LIGHT_GREEN {vec4{0.27889426f, 0.85499261f, 0.27889426f, 1.0f}}
static const Color LIGHT_PINK {vec4{1.00000000f, 0.46778380f, 0.53327640f, 1.0f}}
static const Color LIGHT_SALMON {vec4{1.00000000f, 0.35153260f, 0.19461783f, 1.0f}}
static const Color LIGHT_SEA_GREEN {vec4{0.01444384f, 0.44520119f, 0.40197778f, 1.0f}}
static const Color LIGHT_SKY_BLUE {vec4{0.24228112f, 0.61720656f, 0.95597335f, 1.0f}}
static const Color LIGHT_SLATE_GRAY {vec4{0.18447499f, 0.24620133f, 0.31854678f, 1.0f}}
static const Color LIGHT_SLATE_GREY {vec4{0.18447499f, 0.24620133f, 0.31854678f, 1.0f}}
static const Color LIGHT_STEEL_BLUE {vec4{0.43415364f, 0.55201140f, 0.73046074f, 1.0f}}
static const Color LIGHT_YELLOW {vec4{1.00000000f, 1.00000000f, 0.74540421f, 1.0f}}
static const Color LIME {vec4{0.00000000f, 1.00000000f, 0.00000000f, 1.0f}}
static const Color LIME_GREEN {vec4{0.03189603f, 0.61049557f, 0.03189603f, 1.0f}}
static const Color LINEN {vec4{0.95597335f, 0.87136712f, 0.79129794f, 1.0f}}
static const Color MAGENTA {vec4{1.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
static const Color MAROON {vec4{0.21586050f, 0.00000000f, 0.00000000f, 1.0f}}
static const Color MEDIUM_AQUA_MARINE {vec4{0.13286832f, 0.61049557f, 0.40197778f, 1.0f}}
static const Color MEDIUM_BLUE {vec4{0.00000000f, 0.00000000f, 0.61049557f, 1.0f}}
static const Color MEDIUM_ORCHID {vec4{0.49102085f, 0.09084171f, 0.65140564f, 1.0f}}
static const Color MEDIUM_PURPLE {vec4{0.29177065f, 0.16202938f, 0.70837578f, 1.0f}}
static const Color MEDIUM_SEA_GREEN {vec4{0.04518620f, 0.45078578f, 0.16513219f, 1.0f}}
static const Color MEDIUM_SLATE_BLUE {vec4{0.19806932f, 0.13843162f, 0.85499261f, 1.0f}}
static const Color MEDIUM_SPRING_GREEN {vec4{0.00000000f, 0.95597335f, 0.32314321f, 1.0f}}
static const Color MEDIUM_TURQUOISE {vec4{0.06480327f, 0.63759687f, 0.60382734f, 1.0f}}
static const Color MEDIUM_VIOLET_RED {vec4{0.57112483f, 0.00749903f, 0.23455058f, 1.0f}}
static const Color MIDNIGHT_BLUE {vec4{0.00972122f, 0.00972122f, 0.16202938f, 1.0f}}
static const Color MINT_CREAM {vec4{0.91309865f, 1.00000000f, 0.95597335f, 1.0f}}
static const Color MISTY_ROSE {vec4{1.00000000f, 0.77582222f, 0.75294222f, 1.0f}}
static const Color MOCCASIN {vec4{1.00000000f, 0.77582222f, 0.46207700f, 1.0f}}
static const Color NAVAJO_WHITE {vec4{1.00000000f, 0.73046074f, 0.41788507f, 1.0f}}
static const Color NAVY {vec4{0.00000000f, 0.00000000f, 0.21586050f, 1.0f}}
static const Color OLD_LACE {vec4{0.98225055f, 0.91309865f, 0.79129794f, 1.0f}}
static const Color OLIVE {vec4{0.21586050f, 0.21586050f, 0.00000000f, 1.0f}}
static const Color OLIVE_DRAB {vec4{0.14702727f, 0.27049779f, 0.01680738f, 1.0f}}
static const Color ORANGE {vec4{1.00000000f, 0.37626212f, 0.00000000f, 1.0f}}
static const Color ORANGE_RED {vec4{1.00000000f, 0.05951124f, 0.00000000f, 1.0f}}
static const Color ORCHID {vec4{0.70110189f, 0.16202938f, 0.67244316f, 1.0f}}
static const Color PALE_GOLDEN_ROD {vec4{0.85499261f, 0.80695226f, 0.40197778f, 1.0f}}
static const Color PALE_GREEN {vec4{0.31398871f, 0.96468625f, 0.31398871f, 1.0f}}
static const Color PALE_TURQUOISE {vec4{0.42869050f, 0.85499261f, 0.85499261f, 1.0f}}
static const Color PALE_VIOLET_RED {vec4{0.70837578f, 0.16202938f, 0.29177065f, 1.0f}}
static const Color PAPAYA_WHIP {vec4{1.00000000f, 0.86315721f, 0.66538730f, 1.0f}}
static const Color PEACH_PUFF {vec4{1.00000000f, 0.70110189f, 0.48514994f, 1.0f}}
static const Color PERU {vec4{0.61049557f, 0.23455058f, 0.04970657f, 1.0f}}
static const Color PINK {vec4{1.00000000f, 0.52711513f, 0.59720179f, 1.0f}}
static const Color PLUM {vec4{0.72305513f, 0.35153260f, 0.72305513f, 1.0f}}
static const Color POWDER_BLUE {vec4{0.43415364f, 0.74540421f, 0.79129794f, 1.0f}}
static const Color PURPLE {vec4{0.21586050f, 0.00000000f, 0.21586050f, 1.0f}}
static const Color REBECCA_PURPLE {vec4{0.13286832f, 0.03310477f, 0.31854678f, 1.0f}}
static const Color RED {vec4{1.00000000f, 0.00000000f, 0.00000000f, 1.0f}}
static const Color ROSY_BROWN {vec4{0.50288646f, 0.27467731f, 0.27467731f, 1.0f}}
static const Color ROYAL_BLUE {vec4{0.05286065f, 0.14126329f, 0.75294222f, 1.0f}}
static const Color SADDLE_BROWN {vec4{0.25818285f, 0.05951124f, 0.00651209f, 1.0f}}
static const Color SALMON {vec4{0.95597335f, 0.21586050f, 0.16826940f, 1.0f}}
static const Color SANDY_BROWN {vec4{0.90466117f, 0.37123768f, 0.11697067f, 1.0f}}
static const Color SEA_GREEN {vec4{0.02732089f, 0.25818285f, 0.09530747f, 1.0f}}
static const Color SEA_SHELL {vec4{1.00000000f, 0.91309865f, 0.85499261f, 1.0f}}
static const Color SIENNA {vec4{0.35153260f, 0.08437621f, 0.02624122f, 1.0f}}
static const Color SILVER {vec4{0.52711513f, 0.52711513f, 0.52711513f, 1.0f}}
static const Color SKY_BLUE {vec4{0.24228112f, 0.61720656f, 0.83076988f, 1.0f}}
static const Color SLATE_BLUE {vec4{0.14412847f, 0.10224173f, 0.61049557f, 1.0f}}
static const Color SLATE_GRAY {vec4{0.16202938f, 0.21586050f, 0.27889426f, 1.0f}}
static const Color SLATE_GREY {vec4{0.16202938f, 0.21586050f, 0.27889426f, 1.0f}}
static const Color SNOW {vec4{1.00000000f, 0.95597335f, 0.95597335f, 1.0f}}
static const Color SPRING_GREEN {vec4{0.00000000f, 1.00000000f, 0.21223076f, 1.0f}}
static const Color STEEL_BLUE {vec4{0.06124605f, 0.22322796f, 0.45641102f, 1.0f}}
static const Color TAN {vec4{0.64447968f, 0.45641102f, 0.26225066f, 1.0f}}
static const Color TEAL {vec4{0.00000000f, 0.21586050f, 0.21586050f, 1.0f}}
static const Color THISTLE {vec4{0.68668531f, 0.52099557f, 0.68668531f, 1.0f}}
static const Color TOMATO {vec4{1.00000000f, 0.12477182f, 0.06301002f, 1.0f}}
static const Color TURQUOISE {vec4{0.05126946f, 0.74540421f, 0.63075714f, 1.0f}}
static const Color VIOLET {vec4{0.85499261f, 0.22322796f, 0.85499261f, 1.0f}}
static const Color WHEAT {vec4{0.91309865f, 0.73046074f, 0.45078578f, 1.0f}}
static const Color WHITE {vec4{1.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
static const Color WHITE_SMOKE {vec4{0.91309865f, 0.91309865f, 0.91309865f, 1.0f}}
static const Color YELLOW {vec4{1.00000000f, 1.00000000f, 0.00000000f, 1.0f}}
static const Color YELLOW_GREEN {vec4{0.32314321f, 0.61049557f, 0.03189603f, 1.0f}}

Friends

constexpr Color operator* (const Color &a, const Color &b)
 Get the result of component-wise multiplication between two colors.
constexpr Color operator* (const Color &a, float b)
 Get the result of multiplying a color by a scalar.
constexpr Color operator* (float a, const Color &b)
 Get the result of multiplying a scalar by a color.
constexpr Color operator/ (const Color &a, const Color &b)
 Get the result of component-wise division between two colors.
constexpr Color operator/ (const Color &a, float b)
 Get the result of dividing a color by a scalar.
constexpr Color mix (Color a, Color b, float alpha)
 Linearly blend between two colors based on an alpha value.

Detailed Description

Floating-point linear RGBA color in the Rec.

709 gamut with 32 bits per component.

Member Enumeration Documentation

◆ TransferFunction

enum class grem::Color::TransferFunction : uint8_t
strong

Color transfer function.

Enumerator
LINEAR 

Linear transfer function.

SRGB 

sRGB transfer function.

Constructor & Destructor Documentation

◆ Color()

grem::Color::Color ( )
constexprdefaultnoexcept

Construct a transparent color with a value of 0 in all components.

Member Function Documentation

◆ convertLinearToSRGB() [1/3]

constexpr float grem::Color::convertLinearToSRGB ( float x)
inlinestaticnodiscardconstexpr

Convert a color component in linear space to the sRGB color space.

Parameters
xnormalized linear color component to convert.
Returns
the converted normalized sRGB color component value.

◆ convertLinearToSRGB() [2/3]

constexpr vec3 grem::Color::convertLinearToSRGB ( vec3 rgb)
inlinestaticnodiscardconstexpr

Convert a color in linear space to the sRGB color space.

Parameters
rgbnormalized linear color to convert.
Returns
the converted normalized sRGB color value.

◆ convertLinearToSRGB() [3/3]

constexpr vec4 grem::Color::convertLinearToSRGB ( vec4 rgba)
inlinestaticnodiscardconstexpr

Convert a color in linear space to the sRGB color space.

Parameters
rgbanormalized linear color to convert.
Returns
the converted normalized sRGB color value.

◆ convertSRGBToLinear() [1/3]

constexpr float grem::Color::convertSRGBToLinear ( float x)
inlinestaticnodiscardconstexpr

Convert a color component in the sRGB color space to linear space.

Parameters
xnormalized sRGB color component to convert.
Returns
the converted normalized linear color component value.

◆ convertSRGBToLinear() [2/3]

constexpr vec3 grem::Color::convertSRGBToLinear ( vec3 rgb)
inlinestaticnodiscardconstexpr

Convert a color in the sRGB color space to linear space.

Parameters
rgbnormalized sRGB color to convert.
Returns
the converted normalized linear color value.

◆ convertSRGBToLinear() [3/3]

constexpr vec4 grem::Color::convertSRGBToLinear ( vec4 rgba)
inlinestaticnodiscardconstexpr

Convert a color in the sRGB color space to linear space.

Parameters
rgbanormalized sRGB color to convert.
Returns
the converted normalized linear color value.

◆ convertStraightToPremultipliedAlpha()

constexpr vec4 grem::Color::convertStraightToPremultipliedAlpha ( vec4 rgba)
inlinestaticnodiscardconstexpr

Convert a linear color from straight to pre-multiplied alpha.

Parameters
rgbanormalized linear color with straight alpha to convert.
Returns
the converted normalized linear color value with pre-multiplied alpha.

◆ convertPremultipliedToStraightAlpha()

constexpr vec4 grem::Color::convertPremultipliedToStraightAlpha ( vec4 rgba)
inlinestaticnodiscardconstexpr

Convert a linear color from pre-multiplied to straight alpha.

Parameters
rgbanormalized linear color with pre-multiplied alpha to convert.
Returns
the converted normalized linear color value with straight alpha.

◆ fromLinear() [1/5]

constexpr Color grem::Color::fromLinear ( float x,
float a = 1.0f )
inlinestaticnodiscardconstexprnoexcept

Create a grayscale color from a linear scalar.

Parameters
xvalue of the red, green and blue components.
avalue of the alpha component. Defaults to fully opaque, i.e. a value of 1.
Returns
a color with the given component values.

◆ fromLinear() [2/5]

constexpr Color grem::Color::fromLinear ( float r,
float g,
float b,
float a = 1.0f )
inlinestaticnodiscardconstexprnoexcept

Create a color from linear RGB components.

Parameters
rvalue of the red color component.
gvalue of the green color component.
bvalue of the blue color component.
avalue of the alpha component. Defaults to fully opaque, i.e. a value of 1.
Returns
a color with the given component values.

◆ fromLinear() [3/5]

constexpr Color grem::Color::fromLinear ( vec3 rgb)
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 components, XYZ, that map to the linear color components RGB, respectively.

The alpha component is set to fully opaque, i.e. a value of 1.

Parameters
rgbinput vector containing values for the red, green, and blue components.
Returns
a color with the given component values.

◆ fromLinear() [4/5]

constexpr Color grem::Color::fromLinear ( vec4 rgba)
inlinestaticnodiscardconstexprnoexcept

Construct a color from a vector of 4 components, XYZW, that map to the linear color components RGBA, respectively.

Parameters
rgbainput vector containing values for the red, green, blue and alpha components.
Returns
a color with the given component values.

◆ fromLinear() [5/5]

constexpr Color grem::Color::fromLinear ( vec3 rgb,
float a )
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 components, XYZ, and a scalar, A, that map to the linear color components RGBA, respectively.

Parameters
rgbinput vector containing values for the red, green, and blue components.
avalue of the alpha component.
Returns
a color with the given component values.

◆ fromSRGB() [1/8]

constexpr Color grem::Color::fromSRGB ( u8norm r,
u8norm g,
u8norm b,
u8norm a = 1.0f )
inlinestaticnodiscardconstexprnoexcept

Create a color from sRGB-encoded components.

Parameters
rsRGB-encoded value of the red color component.
gsRGB-encoded value of the green color component.
bsRGB-encoded value of the blue color component.
avalue of the alpha component, which is not sRGB-encoded. Defaults to fully opaque.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [2/8]

constexpr Color grem::Color::fromSRGB ( uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a = 255 )
inlinestaticnodiscardconstexprnoexcept

Create a color from unnormalized sRGB-encoded components.

Parameters
runnormalized sRGB-encoded value of the red color component.
gunnormalized sRGB-encoded value of the green color component.
bunnormalized sRGB-encoded value of the blue color component.
aunnormalized value of the alpha component, which is not sRGB-encoded. Defaults to fully opaque.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [3/8]

constexpr Color grem::Color::fromSRGB ( u8vec3norm rgb,
u8norm a = 1.0f )
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 sRGB-encoded components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.

Parameters
rgbinput vector containing sRGB-encoded values for the red, green and blue components.
alinear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [4/8]

constexpr Color grem::Color::fromSRGB ( u8vec3 rgb,
uint8_t a = 255 )
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 unnormalized sRGB-encoded components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.

Parameters
rgbinput vector containing unnormalized sRGB-encoded values for the red, green and blue components.
aunnormalized linear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [5/8]

constexpr Color grem::Color::fromSRGB ( vec3 rgb,
float a = 1.0f )
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 floating-point sRGB components, XYZ, and a scalar, A, that map to the color components RGBA, respectively.

Parameters
rgbinput vector containing floating-point sRGB values for the red, green and blue components.
alinear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [6/8]

constexpr Color grem::Color::fromSRGB ( u8vec4norm rgba)
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 sRGB-encoded components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.

Parameters
rgbainput vector containing sRGB-encoded values for the red, green and blue components, and the linear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [7/8]

constexpr Color grem::Color::fromSRGB ( u8vec4 rgba)
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 unnormalized sRGB-encoded components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.

Parameters
rgbainput vector containing unnormalized sRGB-encoded values for the red, green and blue components, and the linear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromSRGB() [8/8]

constexpr Color grem::Color::fromSRGB ( vec4 rgba)
inlinestaticnodiscardconstexprnoexcept

Create a color from a vector of 3 floating-point sRGB components, XYZ, and 1 linear component, W, that map to the color components RGBA, respectively.

Parameters
rgbainput vector containing floating-point sRGB values for the red, green and blue components, and the linear value of the alpha component.
Returns
a linear color corresponding to the given components.

◆ fromAlpha()

constexpr Color grem::Color::fromAlpha ( float a)
inlinestaticnodiscardconstexprnoexcept

Create a color from a linear alpha component.

Parameters
avalue of the alpha component.
Returns
a color with a value of 1 in each non-alpha component, and the given value in the alpha component.

◆ operator==()

bool grem::Color::operator== ( const Color & other) const
nodiscardconstexprdefaultnoexcept

Compare this color to another for equality.

Parameters
otherthe color to compare this one to.
Returns
true if the colors are equal, false otherwise.

◆ toLinearRGB()

vec3 grem::Color::toLinearRGB ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 3 components, XYZ, that are mapped from the color components RGB, respectively.

Returns
the RGB components of the color as a vector.

◆ toLinearRGBA()

vec4 grem::Color::toLinearRGBA ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 4 components, XYZW, that are mapped from the color components RGBA, respectively.

Returns
the RGBA components of the color as a vector.

◆ toSRGB()

u8vec3norm grem::Color::toSRGB ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 3 sRGB-encoded components, XYZ, that are mapped from the color components RGB, respectively.

Returns
an SRGB-encoded vector corresponding to the RGB components of the color.

◆ toFloatSRGB()

vec3 grem::Color::toFloatSRGB ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 3 floating-point sRGB components, XYZ, that are mapped from the color components RGB, respectively.

Returns
a floating-point SRGB vector corresponding to the RGB components of the color.

◆ toSRGBA()

u8vec4norm grem::Color::toSRGBA ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 3 sRGB-encoded components, XYZ, and 1 linear component, W, that are mapped from the color components RGBA, respectively.

Returns
an SRGB-encoded vector corresponding to the RGBA components of the color.

◆ toFloatSRGBA()

vec4 grem::Color::toFloatSRGBA ( ) const
inlinenodiscardconstexprnoexcept

Convert the color to a vector with 3 floating-point sRGB components, XYZ, and 1 linear component, W, that are mapped from the color components RGBA, respectively.

Returns
a floating-point SRGB vector corresponding to the RGBA components of the color.

◆ getAlpha()

float grem::Color::getAlpha ( ) const
inlinenodiscardconstexprnoexcept

Get the linear alpha component of the color.

Returns
the alpha component of the color.

◆ setAlpha()

void grem::Color::setAlpha ( float newAlpha)
inlineconstexprnoexcept

Set the linear alpha component of the color.

Parameters
newAlphanew alpha component value to set.

◆ operator*=() [1/4]

Color & grem::Color::operator*= ( const Color & other)
inlineconstexprnoexcept

Multiply the component values of this color with their respective component values in another color.

Parameters
othercolor to multiply this color by.
Returns
*this, for chaining.

◆ operator*=() [2/4]

Color & grem::Color::operator*= ( float coefficient)
inlineconstexprnoexcept

Multiply the component values of this color by a scalar.

Parameters
otherscalar to multiply this color by.
Returns
*this, for chaining.
Note
This multiplies all components, including alpha.

◆ operator/=() [1/4]

Color & grem::Color::operator/= ( const Color & other)
inlineconstexprnoexcept

Divide the component values of this color by their respective component values in another color.

Parameters
othercolor to divide this color by.
Returns
*this, for chaining.

◆ operator/=() [2/4]

Color & grem::Color::operator/= ( float denominator)
inlineconstexprnoexcept

Divide the component values of this color by a scalar.

Parameters
denominatorscalar to divide this color by.
Returns
*this, for chaining.
Note
This divides all components, including alpha.

◆ operator*=() [3/4]

Color & grem::Color::operator*= ( vec3 rgbCoefficients)
inlineconstexprnoexcept

Multiply the RGB component values of this color by the corresponding values in a 3-component vector.

Parameters
rgbCoefficientsvector containing the values to multiply the red, green, and blue components by.
Returns
*this, for chaining.

◆ operator*=() [4/4]

Color & grem::Color::operator*= ( vec4 rgbaCoefficients)
inlineconstexprnoexcept

Multiply the RGBA component values of this color by the corresponding values in a 4-component vector.

Parameters
rgbaCoefficientsvector containing the values to multiply the red, green, blue, and alpha components by.
Returns
*this, for chaining.

◆ operator/=() [3/4]

Color & grem::Color::operator/= ( vec3 rgbDenominators)
inlineconstexprnoexcept

Divide the RGB component values of this color by the corresponding values in a 3-component vector.

Parameters
rgbDenominatorsvector containing the values to divide the red, green, and blue components by.
Returns
*this, for chaining.

◆ operator/=() [4/4]

Color & grem::Color::operator/= ( vec4 rgbaDenominators)
inlineconstexprnoexcept

Divide the RGBA component values of this color by the corresponding values in a 4-component vector.

Parameters
rgbaDenominatorsvector containing the values to divide the red, green, blue, and alpha components by.
Returns
*this, for chaining.

◆ operator* [1/3]

Color operator* ( const Color & a,
const Color & b )
friend

Get the result of component-wise multiplication between two colors.

Parameters
aleft-hand side of the multiplication.
bright-hand side of the multiplication.
Returns
a color containing a * b, component-wise.

◆ operator* [2/3]

Color operator* ( const Color & a,
float b )
friend

Get the result of multiplying a color by a scalar.

Parameters
aleft-hand side of the multiplication.
bright-hand side of the multiplication.
Returns
a color containing each component of a, multiplied by b.
Note
This multiplies all components, including alpha.

◆ operator* [3/3]

Color operator* ( float a,
const Color & b )
friend

Get the result of multiplying a scalar by a color.

Parameters
aleft-hand side of the multiplication.
bright-hand side of the multiplication.
Returns
a color containing each component of b, multiplied by a.
Note
This multiplies all components, including alpha.

◆ operator/ [1/2]

Color operator/ ( const Color & a,
const Color & b )
friend

Get the result of component-wise division between two colors.

Parameters
aleft-hand side of the division.
bright-hand side of the division.
Returns
a color containing a / b, component-wise.

◆ operator/ [2/2]

Color operator/ ( const Color & a,
float b )
friend

Get the result of dividing a color by a scalar.

Parameters
aleft-hand side of the multiplication.
bright-hand side of the multiplication.
Returns
a color containing each component of a, divided by b.
Note
This divides all components, including alpha.

◆ mix

Color mix ( Color a,
Color b,
float alpha )
friend

Linearly blend between two colors based on an alpha value.

Parameters
acolor to blend from.
bcolor to blend towards.
alphaamount to blend each color.
Returns
A component-wise linear interpolation of the given colors.

Member Data Documentation

◆ INVISIBLE

Color grem::Color::INVISIBLE {}
inlinestaticconstexpr

◆ ALICE_BLUE

Color grem::Color::ALICE_BLUE {vec4{0.87136712f, 0.93868573f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ ANTIQUE_WHITE

Color grem::Color::ANTIQUE_WHITE {vec4{0.95597335f, 0.83076988f, 0.67954247f, 1.0f}}
inlinestaticconstexpr

◆ AQUA

Color grem::Color::AQUA {vec4{0.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ AQUAMARINE

Color grem::Color::AQUAMARINE {vec4{0.21223076f, 1.00000000f, 0.65837482f, 1.0f}}
inlinestaticconstexpr

◆ AZURE

Color grem::Color::AZURE {vec4{0.87136712f, 1.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ BEIGE

Color grem::Color::BEIGE {vec4{0.91309865f, 0.91309865f, 0.71569350f, 1.0f}}
inlinestaticconstexpr

◆ BISQUE

Color grem::Color::BISQUE {vec4{1.00000000f, 0.77582222f, 0.55201140f, 1.0f}}
inlinestaticconstexpr

◆ BLACK

Color grem::Color::BLACK {vec4{0.00000000f, 0.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ BLANCHED_ALMOND

Color grem::Color::BLANCHED_ALMOND {vec4{1.00000000f, 0.83076988f, 0.61049557f, 1.0f}}
inlinestaticconstexpr

◆ BLUE

Color grem::Color::BLUE {vec4{0.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ BLUE_VIOLET

Color grem::Color::BLUE_VIOLET {vec4{0.25415209f, 0.02415763f, 0.76052450f, 1.0f}}
inlinestaticconstexpr

◆ BROWN

Color grem::Color::BROWN {vec4{0.37626212f, 0.02315337f, 0.02315337f, 1.0f}}
inlinestaticconstexpr

◆ BURLY_WOOD

Color grem::Color::BURLY_WOOD {vec4{0.73046074f, 0.47932018f, 0.24228112f, 1.0f}}
inlinestaticconstexpr

◆ CADET_BLUE

Color grem::Color::CADET_BLUE {vec4{0.11443537f, 0.34191442f, 0.35153260f, 1.0f}}
inlinestaticconstexpr

◆ CHARTREUSE

Color grem::Color::CHARTREUSE {vec4{0.21223076f, 1.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ CHOCOLATE

Color grem::Color::CHOCOLATE {vec4{0.64447968f, 0.14126329f, 0.01298303f, 1.0f}}
inlinestaticconstexpr

◆ CORAL

Color grem::Color::CORAL {vec4{1.00000000f, 0.21223076f, 0.08021982f, 1.0f}}
inlinestaticconstexpr

◆ CORNFLOWER_BLUE

Color grem::Color::CORNFLOWER_BLUE {vec4{0.12743768f, 0.30054379f, 0.84687323f, 1.0f}}
inlinestaticconstexpr

◆ CORNSILK

Color grem::Color::CORNSILK {vec4{1.00000000f, 0.93868573f, 0.71569350f, 1.0f}}
inlinestaticconstexpr

◆ CRIMSON

Color grem::Color::CRIMSON {vec4{0.71569350f, 0.00699541f, 0.04518620f, 1.0f}}
inlinestaticconstexpr

◆ CYAN

Color grem::Color::CYAN {vec4{0.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ DARK_BLUE

Color grem::Color::DARK_BLUE {vec4{0.00000000f, 0.00000000f, 0.25818285f, 1.0f}}
inlinestaticconstexpr

◆ DARK_CYAN

Color grem::Color::DARK_CYAN {vec4{0.00000000f, 0.25818285f, 0.25818285f, 1.0f}}
inlinestaticconstexpr

◆ DARK_GOLDEN_ROD

Color grem::Color::DARK_GOLDEN_ROD {vec4{0.47932018f, 0.23839757f, 0.00334654f, 1.0f}}
inlinestaticconstexpr

◆ DARK_GRAY

Color grem::Color::DARK_GRAY {vec4{0.39675523f, 0.39675523f, 0.39675523f, 1.0f}}
inlinestaticconstexpr

◆ DARK_GREY

Color grem::Color::DARK_GREY {vec4{0.39675523f, 0.39675523f, 0.39675523f, 1.0f}}
inlinestaticconstexpr

◆ DARK_GREEN

Color grem::Color::DARK_GREEN {vec4{0.00000000f, 0.12743768f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ DARK_KHAKI

Color grem::Color::DARK_KHAKI {vec4{0.50888132f, 0.47353150f, 0.14702727f, 1.0f}}
inlinestaticconstexpr

◆ DARK_MAGENTA

Color grem::Color::DARK_MAGENTA {vec4{0.25818285f, 0.00000000f, 0.25818285f, 1.0f}}
inlinestaticconstexpr

◆ DARK_OLIVE_GREEN

Color grem::Color::DARK_OLIVE_GREEN {vec4{0.09084171f, 0.14702727f, 0.02842604f, 1.0f}}
inlinestaticconstexpr

◆ DARK_ORANGE

Color grem::Color::DARK_ORANGE {vec4{1.00000000f, 0.26225066f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ DARK_ORCHID

Color grem::Color::DARK_ORCHID {vec4{0.31854678f, 0.03189603f, 0.60382734f, 1.0f}}
inlinestaticconstexpr

◆ DARK_RED

Color grem::Color::DARK_RED {vec4{0.25818285f, 0.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ DARK_SALMON

Color grem::Color::DARK_SALMON {vec4{0.81484657f, 0.30498731f, 0.19461783f, 1.0f}}
inlinestaticconstexpr

◆ DARK_SEA_GREEN

Color grem::Color::DARK_SEA_GREEN {vec4{0.27467731f, 0.50288646f, 0.27467731f, 1.0f}}
inlinestaticconstexpr

◆ DARK_SLATE_BLUE

Color grem::Color::DARK_SLATE_BLUE {vec4{0.06480327f, 0.04666509f, 0.25818285f, 1.0f}}
inlinestaticconstexpr

◆ DARK_SLATE_GRAY

Color grem::Color::DARK_SLATE_GRAY {vec4{0.02842604f, 0.07818742f, 0.07818742f, 1.0f}}
inlinestaticconstexpr

◆ DARK_SLATE_GREY

Color grem::Color::DARK_SLATE_GREY {vec4{0.02842604f, 0.07818742f, 0.07818742f, 1.0f}}
inlinestaticconstexpr

◆ DARK_TURQUOISE

Color grem::Color::DARK_TURQUOISE {vec4{0.00000000f, 0.61720656f, 0.63759687f, 1.0f}}
inlinestaticconstexpr

◆ DARK_VIOLET

Color grem::Color::DARK_VIOLET {vec4{0.29613827f, 0.00000000f, 0.65140564f, 1.0f}}
inlinestaticconstexpr

◆ DEEP_PINK

Color grem::Color::DEEP_PINK {vec4{1.00000000f, 0.00699541f, 0.29177065f, 1.0f}}
inlinestaticconstexpr

◆ DEEP_SKY_BLUE

Color grem::Color::DEEP_SKY_BLUE {vec4{0.00000000f, 0.52099557f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ DIM_GRAY

Color grem::Color::DIM_GRAY {vec4{0.14126329f, 0.14126329f, 0.14126329f, 1.0f}}
inlinestaticconstexpr

◆ DIM_GREY

Color grem::Color::DIM_GREY {vec4{0.14126329f, 0.14126329f, 0.14126329f, 1.0f}}
inlinestaticconstexpr

◆ DODGER_BLUE

Color grem::Color::DODGER_BLUE {vec4{0.01298303f, 0.27889426f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ FIRE_BRICK

Color grem::Color::FIRE_BRICK {vec4{0.44520119f, 0.01599629f, 0.01599629f, 1.0f}}
inlinestaticconstexpr

◆ FLORAL_WHITE

Color grem::Color::FLORAL_WHITE {vec4{1.00000000f, 0.95597335f, 0.87136712f, 1.0f}}
inlinestaticconstexpr

◆ FOREST_GREEN

Color grem::Color::FOREST_GREEN {vec4{0.01599629f, 0.25818285f, 0.01599629f, 1.0f}}
inlinestaticconstexpr

◆ FUCHSIA

Color grem::Color::FUCHSIA {vec4{1.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ GAINSBORO

Color grem::Color::GAINSBORO {vec4{0.71569350f, 0.71569350f, 0.71569350f, 1.0f}}
inlinestaticconstexpr

◆ GHOST_WHITE

Color grem::Color::GHOST_WHITE {vec4{0.93868573f, 0.93868573f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ GOLD

Color grem::Color::GOLD {vec4{1.00000000f, 0.67954247f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ GOLDEN_ROD

Color grem::Color::GOLDEN_ROD {vec4{0.70110189f, 0.37626212f, 0.01444384f, 1.0f}}
inlinestaticconstexpr

◆ GRAY

Color grem::Color::GRAY {vec4{0.21586050f, 0.21586050f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ GREY

Color grem::Color::GREY {vec4{0.21586050f, 0.21586050f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ GREEN

Color grem::Color::GREEN {vec4{0.00000000f, 0.21586050f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ GREEN_YELLOW

Color grem::Color::GREEN_YELLOW {vec4{0.41788507f, 1.00000000f, 0.02842604f, 1.0f}}
inlinestaticconstexpr

◆ HONEY_DEW

Color grem::Color::HONEY_DEW {vec4{0.87136712f, 1.00000000f, 0.87136712f, 1.0f}}
inlinestaticconstexpr

◆ HOT_PINK

Color grem::Color::HOT_PINK {vec4{1.00000000f, 0.14126329f, 0.45641102f, 1.0f}}
inlinestaticconstexpr

◆ INDIAN_RED

Color grem::Color::INDIAN_RED {vec4{0.61049557f, 0.10702310f, 0.10702310f, 1.0f}}
inlinestaticconstexpr

◆ INDIGO

Color grem::Color::INDIGO {vec4{0.07036010f, 0.00000000f, 0.22322796f, 1.0f}}
inlinestaticconstexpr

◆ IVORY

Color grem::Color::IVORY {vec4{1.00000000f, 1.00000000f, 0.87136712f, 1.0f}}
inlinestaticconstexpr

◆ KHAKI

Color grem::Color::KHAKI {vec4{0.87136712f, 0.79129794f, 0.26225066f, 1.0f}}
inlinestaticconstexpr

◆ LAVENDER

Color grem::Color::LAVENDER {vec4{0.79129794f, 0.79129794f, 0.95597335f, 1.0f}}
inlinestaticconstexpr

◆ LAVENDER_BLUSH

Color grem::Color::LAVENDER_BLUSH {vec4{1.00000000f, 0.87136712f, 0.91309865f, 1.0f}}
inlinestaticconstexpr

◆ LAWN_GREEN

Color grem::Color::LAWN_GREEN {vec4{0.20155625f, 0.97344529f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ LEMON_CHIFFON

Color grem::Color::LEMON_CHIFFON {vec4{1.00000000f, 0.95597335f, 0.61049557f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_BLUE

Color grem::Color::LIGHT_BLUE {vec4{0.41788507f, 0.68668531f, 0.79129794f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_CORAL

Color grem::Color::LIGHT_CORAL {vec4{0.87136712f, 0.21586050f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_CYAN

Color grem::Color::LIGHT_CYAN {vec4{0.74540421f, 1.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_GOLDEN_ROD_YELLOW

Color grem::Color::LIGHT_GOLDEN_ROD_YELLOW {vec4{0.95597335f, 0.95597335f, 0.64447968f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_GRAY

Color grem::Color::LIGHT_GRAY {vec4{0.65140564f, 0.65140564f, 0.65140564f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_GREY

Color grem::Color::LIGHT_GREY {vec4{0.65140564f, 0.65140564f, 0.65140564f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_GREEN

Color grem::Color::LIGHT_GREEN {vec4{0.27889426f, 0.85499261f, 0.27889426f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_PINK

Color grem::Color::LIGHT_PINK {vec4{1.00000000f, 0.46778380f, 0.53327640f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_SALMON

Color grem::Color::LIGHT_SALMON {vec4{1.00000000f, 0.35153260f, 0.19461783f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_SEA_GREEN

Color grem::Color::LIGHT_SEA_GREEN {vec4{0.01444384f, 0.44520119f, 0.40197778f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_SKY_BLUE

Color grem::Color::LIGHT_SKY_BLUE {vec4{0.24228112f, 0.61720656f, 0.95597335f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_SLATE_GRAY

Color grem::Color::LIGHT_SLATE_GRAY {vec4{0.18447499f, 0.24620133f, 0.31854678f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_SLATE_GREY

Color grem::Color::LIGHT_SLATE_GREY {vec4{0.18447499f, 0.24620133f, 0.31854678f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_STEEL_BLUE

Color grem::Color::LIGHT_STEEL_BLUE {vec4{0.43415364f, 0.55201140f, 0.73046074f, 1.0f}}
inlinestaticconstexpr

◆ LIGHT_YELLOW

Color grem::Color::LIGHT_YELLOW {vec4{1.00000000f, 1.00000000f, 0.74540421f, 1.0f}}
inlinestaticconstexpr

◆ LIME

Color grem::Color::LIME {vec4{0.00000000f, 1.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ LIME_GREEN

Color grem::Color::LIME_GREEN {vec4{0.03189603f, 0.61049557f, 0.03189603f, 1.0f}}
inlinestaticconstexpr

◆ LINEN

Color grem::Color::LINEN {vec4{0.95597335f, 0.87136712f, 0.79129794f, 1.0f}}
inlinestaticconstexpr

◆ MAGENTA

Color grem::Color::MAGENTA {vec4{1.00000000f, 0.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ MAROON

Color grem::Color::MAROON {vec4{0.21586050f, 0.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_AQUA_MARINE

Color grem::Color::MEDIUM_AQUA_MARINE {vec4{0.13286832f, 0.61049557f, 0.40197778f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_BLUE

Color grem::Color::MEDIUM_BLUE {vec4{0.00000000f, 0.00000000f, 0.61049557f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_ORCHID

Color grem::Color::MEDIUM_ORCHID {vec4{0.49102085f, 0.09084171f, 0.65140564f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_PURPLE

Color grem::Color::MEDIUM_PURPLE {vec4{0.29177065f, 0.16202938f, 0.70837578f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_SEA_GREEN

Color grem::Color::MEDIUM_SEA_GREEN {vec4{0.04518620f, 0.45078578f, 0.16513219f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_SLATE_BLUE

Color grem::Color::MEDIUM_SLATE_BLUE {vec4{0.19806932f, 0.13843162f, 0.85499261f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_SPRING_GREEN

Color grem::Color::MEDIUM_SPRING_GREEN {vec4{0.00000000f, 0.95597335f, 0.32314321f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_TURQUOISE

Color grem::Color::MEDIUM_TURQUOISE {vec4{0.06480327f, 0.63759687f, 0.60382734f, 1.0f}}
inlinestaticconstexpr

◆ MEDIUM_VIOLET_RED

Color grem::Color::MEDIUM_VIOLET_RED {vec4{0.57112483f, 0.00749903f, 0.23455058f, 1.0f}}
inlinestaticconstexpr

◆ MIDNIGHT_BLUE

Color grem::Color::MIDNIGHT_BLUE {vec4{0.00972122f, 0.00972122f, 0.16202938f, 1.0f}}
inlinestaticconstexpr

◆ MINT_CREAM

Color grem::Color::MINT_CREAM {vec4{0.91309865f, 1.00000000f, 0.95597335f, 1.0f}}
inlinestaticconstexpr

◆ MISTY_ROSE

Color grem::Color::MISTY_ROSE {vec4{1.00000000f, 0.77582222f, 0.75294222f, 1.0f}}
inlinestaticconstexpr

◆ MOCCASIN

Color grem::Color::MOCCASIN {vec4{1.00000000f, 0.77582222f, 0.46207700f, 1.0f}}
inlinestaticconstexpr

◆ NAVAJO_WHITE

Color grem::Color::NAVAJO_WHITE {vec4{1.00000000f, 0.73046074f, 0.41788507f, 1.0f}}
inlinestaticconstexpr

◆ NAVY

Color grem::Color::NAVY {vec4{0.00000000f, 0.00000000f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ OLD_LACE

Color grem::Color::OLD_LACE {vec4{0.98225055f, 0.91309865f, 0.79129794f, 1.0f}}
inlinestaticconstexpr

◆ OLIVE

Color grem::Color::OLIVE {vec4{0.21586050f, 0.21586050f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ OLIVE_DRAB

Color grem::Color::OLIVE_DRAB {vec4{0.14702727f, 0.27049779f, 0.01680738f, 1.0f}}
inlinestaticconstexpr

◆ ORANGE

Color grem::Color::ORANGE {vec4{1.00000000f, 0.37626212f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ ORANGE_RED

Color grem::Color::ORANGE_RED {vec4{1.00000000f, 0.05951124f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ ORCHID

Color grem::Color::ORCHID {vec4{0.70110189f, 0.16202938f, 0.67244316f, 1.0f}}
inlinestaticconstexpr

◆ PALE_GOLDEN_ROD

Color grem::Color::PALE_GOLDEN_ROD {vec4{0.85499261f, 0.80695226f, 0.40197778f, 1.0f}}
inlinestaticconstexpr

◆ PALE_GREEN

Color grem::Color::PALE_GREEN {vec4{0.31398871f, 0.96468625f, 0.31398871f, 1.0f}}
inlinestaticconstexpr

◆ PALE_TURQUOISE

Color grem::Color::PALE_TURQUOISE {vec4{0.42869050f, 0.85499261f, 0.85499261f, 1.0f}}
inlinestaticconstexpr

◆ PALE_VIOLET_RED

Color grem::Color::PALE_VIOLET_RED {vec4{0.70837578f, 0.16202938f, 0.29177065f, 1.0f}}
inlinestaticconstexpr

◆ PAPAYA_WHIP

Color grem::Color::PAPAYA_WHIP {vec4{1.00000000f, 0.86315721f, 0.66538730f, 1.0f}}
inlinestaticconstexpr

◆ PEACH_PUFF

Color grem::Color::PEACH_PUFF {vec4{1.00000000f, 0.70110189f, 0.48514994f, 1.0f}}
inlinestaticconstexpr

◆ PERU

Color grem::Color::PERU {vec4{0.61049557f, 0.23455058f, 0.04970657f, 1.0f}}
inlinestaticconstexpr

◆ PINK

Color grem::Color::PINK {vec4{1.00000000f, 0.52711513f, 0.59720179f, 1.0f}}
inlinestaticconstexpr

◆ PLUM

Color grem::Color::PLUM {vec4{0.72305513f, 0.35153260f, 0.72305513f, 1.0f}}
inlinestaticconstexpr

◆ POWDER_BLUE

Color grem::Color::POWDER_BLUE {vec4{0.43415364f, 0.74540421f, 0.79129794f, 1.0f}}
inlinestaticconstexpr

◆ PURPLE

Color grem::Color::PURPLE {vec4{0.21586050f, 0.00000000f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ REBECCA_PURPLE

Color grem::Color::REBECCA_PURPLE {vec4{0.13286832f, 0.03310477f, 0.31854678f, 1.0f}}
inlinestaticconstexpr

◆ RED

Color grem::Color::RED {vec4{1.00000000f, 0.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ ROSY_BROWN

Color grem::Color::ROSY_BROWN {vec4{0.50288646f, 0.27467731f, 0.27467731f, 1.0f}}
inlinestaticconstexpr

◆ ROYAL_BLUE

Color grem::Color::ROYAL_BLUE {vec4{0.05286065f, 0.14126329f, 0.75294222f, 1.0f}}
inlinestaticconstexpr

◆ SADDLE_BROWN

Color grem::Color::SADDLE_BROWN {vec4{0.25818285f, 0.05951124f, 0.00651209f, 1.0f}}
inlinestaticconstexpr

◆ SALMON

Color grem::Color::SALMON {vec4{0.95597335f, 0.21586050f, 0.16826940f, 1.0f}}
inlinestaticconstexpr

◆ SANDY_BROWN

Color grem::Color::SANDY_BROWN {vec4{0.90466117f, 0.37123768f, 0.11697067f, 1.0f}}
inlinestaticconstexpr

◆ SEA_GREEN

Color grem::Color::SEA_GREEN {vec4{0.02732089f, 0.25818285f, 0.09530747f, 1.0f}}
inlinestaticconstexpr

◆ SEA_SHELL

Color grem::Color::SEA_SHELL {vec4{1.00000000f, 0.91309865f, 0.85499261f, 1.0f}}
inlinestaticconstexpr

◆ SIENNA

Color grem::Color::SIENNA {vec4{0.35153260f, 0.08437621f, 0.02624122f, 1.0f}}
inlinestaticconstexpr

◆ SILVER

Color grem::Color::SILVER {vec4{0.52711513f, 0.52711513f, 0.52711513f, 1.0f}}
inlinestaticconstexpr

◆ SKY_BLUE

Color grem::Color::SKY_BLUE {vec4{0.24228112f, 0.61720656f, 0.83076988f, 1.0f}}
inlinestaticconstexpr

◆ SLATE_BLUE

Color grem::Color::SLATE_BLUE {vec4{0.14412847f, 0.10224173f, 0.61049557f, 1.0f}}
inlinestaticconstexpr

◆ SLATE_GRAY

Color grem::Color::SLATE_GRAY {vec4{0.16202938f, 0.21586050f, 0.27889426f, 1.0f}}
inlinestaticconstexpr

◆ SLATE_GREY

Color grem::Color::SLATE_GREY {vec4{0.16202938f, 0.21586050f, 0.27889426f, 1.0f}}
inlinestaticconstexpr

◆ SNOW

Color grem::Color::SNOW {vec4{1.00000000f, 0.95597335f, 0.95597335f, 1.0f}}
inlinestaticconstexpr

◆ SPRING_GREEN

Color grem::Color::SPRING_GREEN {vec4{0.00000000f, 1.00000000f, 0.21223076f, 1.0f}}
inlinestaticconstexpr

◆ STEEL_BLUE

Color grem::Color::STEEL_BLUE {vec4{0.06124605f, 0.22322796f, 0.45641102f, 1.0f}}
inlinestaticconstexpr

◆ TAN

Color grem::Color::TAN {vec4{0.64447968f, 0.45641102f, 0.26225066f, 1.0f}}
inlinestaticconstexpr

◆ TEAL

Color grem::Color::TEAL {vec4{0.00000000f, 0.21586050f, 0.21586050f, 1.0f}}
inlinestaticconstexpr

◆ THISTLE

Color grem::Color::THISTLE {vec4{0.68668531f, 0.52099557f, 0.68668531f, 1.0f}}
inlinestaticconstexpr

◆ TOMATO

Color grem::Color::TOMATO {vec4{1.00000000f, 0.12477182f, 0.06301002f, 1.0f}}
inlinestaticconstexpr

◆ TURQUOISE

Color grem::Color::TURQUOISE {vec4{0.05126946f, 0.74540421f, 0.63075714f, 1.0f}}
inlinestaticconstexpr

◆ VIOLET

Color grem::Color::VIOLET {vec4{0.85499261f, 0.22322796f, 0.85499261f, 1.0f}}
inlinestaticconstexpr

◆ WHEAT

Color grem::Color::WHEAT {vec4{0.91309865f, 0.73046074f, 0.45078578f, 1.0f}}
inlinestaticconstexpr

◆ WHITE

Color grem::Color::WHITE {vec4{1.00000000f, 1.00000000f, 1.00000000f, 1.0f}}
inlinestaticconstexpr

◆ WHITE_SMOKE

Color grem::Color::WHITE_SMOKE {vec4{0.91309865f, 0.91309865f, 0.91309865f, 1.0f}}
inlinestaticconstexpr

◆ YELLOW

Color grem::Color::YELLOW {vec4{1.00000000f, 1.00000000f, 0.00000000f, 1.0f}}
inlinestaticconstexpr

◆ YELLOW_GREEN

Color grem::Color::YELLOW_GREEN {vec4{0.32314321f, 0.61049557f, 0.03189603f, 1.0f}}
inlinestaticconstexpr

The documentation for this class was generated from the following file: