Euphoria
eu::colors Namespace Reference

Functions

constexpr eu::Rgb rgb (int r, int g, int b)
 helper function to create a rgb color with code similar to css causing some editors to display a color box
constexpr Hsl hsl (int deg, float s, float l)
 helper function to create a hsl color with code similar to css causing some editors to display a color box

Variables

constexpr auto white = eu::Rgb{1.0f, 1.0f, 1.0f}
constexpr auto black = eu::Rgb{0.0f, 0.0f, 0.0f}
constexpr eu::Rgb orange = rgb(230, 159, 0)
constexpr eu::Rgb blue_sky = rgb(86, 180, 233)
constexpr eu::Rgb green_bluish = rgb(0, 158, 115)
constexpr eu::Rgb yellow = rgb(240, 228, 66)
constexpr eu::Rgb blue = rgb(0, 114, 178)
constexpr eu::Rgb red_vermillion = rgb(213, 94, 0)
constexpr eu::Rgb purple_redish = rgb(204, 121, 167)

Function Documentation

◆ hsl()

Hsl eu::colors::hsl ( int deg,
float s,
float l )
constexpr

helper function to create a hsl color with code similar to css causing some editors to display a color box

Definition at line 151 of file colors.h.

◆ rgb()

eu::Rgb eu::colors::rgb ( int r,
int g,
int b )
constexpr

helper function to create a rgb color with code similar to css causing some editors to display a color box

Definition at line 145 of file colors.h.

Variable Documentation

◆ black

auto eu::colors::black = eu::Rgb{0.0f, 0.0f, 0.0f}
constexpr

Definition at line 157 of file colors.h.

◆ blue

eu::Rgb eu::colors::blue = rgb(0, 114, 178)
constexpr

Definition at line 164 of file colors.h.

◆ blue_sky

eu::Rgb eu::colors::blue_sky = rgb(86, 180, 233)
constexpr

Definition at line 161 of file colors.h.

◆ green_bluish

eu::Rgb eu::colors::green_bluish = rgb(0, 158, 115)
constexpr

Definition at line 162 of file colors.h.

◆ orange

eu::Rgb eu::colors::orange = rgb(230, 159, 0)
constexpr

Definition at line 160 of file colors.h.

◆ purple_redish

eu::Rgb eu::colors::purple_redish = rgb(204, 121, 167)
constexpr

Definition at line 166 of file colors.h.

◆ red_vermillion

eu::Rgb eu::colors::red_vermillion = rgb(213, 94, 0)
constexpr

Definition at line 165 of file colors.h.

◆ white

auto eu::colors::white = eu::Rgb{1.0f, 1.0f, 1.0f}
constexpr

Definition at line 156 of file colors.h.

◆ yellow

eu::Rgb eu::colors::yellow = rgb(240, 228, 66)
constexpr

Definition at line 163 of file colors.h.