Euphoria
|
rgb.h
Go to the documentation of this file.
constexpr unsigned int to_color_hex(unsigned int r, unsigned int g, unsigned int b)
Definition: rgb.h:251
constexpr unsigned int to_color_hex(BangWongPalette color)
Definition: rgb.h:300
constexpr U8 get_component(unsigned int i, unsigned int steps)
Definition: rgb.h:218
unsigned int from_string_to_hex(const std::string &str)
Definition: assert.h:90
@ black
@ red_vermillion
@ green_bluish
@ organge
@ blue_sky
@ purple_redish
@ yellow
Hsl get_saturated(const Hsl &ahsl, float amount, IsAbsolute method)
Definition: rgb.cc:435
Hsl get_lightened(const Hsl &ahsl, float amount, IsAbsolute method)
Definition: rgb.cc:469
@ black
@ pure_purple
@ pure_green
@ blue
@ pure_orange
@ dark_gray
@ pink
@ tan
@ pure_red
@ light_blue
@ cyan
@ pure_pink
@ brown
@ pure_beige
@ pure_blue
@ light_gray
@ normal_blue
@ pure_cyan
@ pure_yellow
@ green
@ purple
@ cornflower_blue
@ red
@ light_green
@ pure_brown
@ gray
@ yellow
@ white
@ pure_tan
@ orange
@ yes
Rgb get_shaded_color(const Rgb &color, float percentage)
Makes a color brighter or darker.
Definition: rgb.cc:503
DEFAULT_INTERPOLATE(Angle, lerp_angle)
Hsl get_darkened(const Hsl &ahsl, float amount, IsAbsolute method)
Definition: rgb.cc:486
Hsl get_desaturated(const Hsl &ahsl, float amount, IsAbsolute method)
Definition: rgb.cc:452
ADD_DEFAULT_FORMATTER(eu::Rgbi, std::string, eu::to_string)
Definition: angle.h:14
Definition: result.h:11
static Result< Rgbi > parse(const std::string &value)
Definition: rgb.h:419
Definition: string_io.h:12