Euphoria
Functions | Variables
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()

constexpr 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()

constexpr 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

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

Definition at line 157 of file colors.h.

◆ blue

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

Definition at line 164 of file colors.h.

◆ blue_sky

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

Definition at line 161 of file colors.h.

◆ green_bluish

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

Definition at line 162 of file colors.h.

◆ orange

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

Definition at line 160 of file colors.h.

◆ purple_redish

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

Definition at line 166 of file colors.h.

◆ red_vermillion

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

Definition at line 165 of file colors.h.

◆ white

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

Definition at line 156 of file colors.h.

◆ yellow

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

Definition at line 163 of file colors.h.