Euphoria
eu::colorutil Namespace Reference

Functions

constexpr U8 get_component (unsigned int i, unsigned int steps)
 
constexpr U8 get_red (unsigned int c)
 
constexpr U8 get_green (unsigned int c)
 
constexpr U8 get_blue (unsigned int c)
 
constexpr float to_float (U8 c)
 
constexpr U8 to_unsigned_char (float f)
 
constexpr unsigned int to_color_hex (unsigned int r, unsigned int g, unsigned int b)
 
constexpr unsigned int to_color_hex (NamedColor color)
 
constexpr unsigned int to_color_hex (BangWongPalette color)
 
unsigned int from_string_to_hex (const std::string &str)
 

Function Documentation

◆ from_string_to_hex()

unsigned int eu::colorutil::from_string_to_hex ( const std::string &  str)

◆ get_blue()

constexpr U8 eu::colorutil::get_blue ( unsigned int  c)
constexpr

Definition at line 235 of file rgb.h.

◆ get_component()

constexpr U8 eu::colorutil::get_component ( unsigned int  i,
unsigned int  steps 
)
constexpr

Definition at line 218 of file rgb.h.

◆ get_green()

constexpr U8 eu::colorutil::get_green ( unsigned int  c)
constexpr

Definition at line 230 of file rgb.h.

◆ get_red()

constexpr U8 eu::colorutil::get_red ( unsigned int  c)
constexpr

Definition at line 225 of file rgb.h.

◆ to_color_hex() [1/3]

constexpr unsigned int eu::colorutil::to_color_hex ( BangWongPalette  color)
constexpr

Definition at line 300 of file rgb.h.

◆ to_color_hex() [2/3]

constexpr unsigned int eu::colorutil::to_color_hex ( NamedColor  color)
constexpr

Definition at line 258 of file rgb.h.

◆ to_color_hex() [3/3]

constexpr unsigned int eu::colorutil::to_color_hex ( unsigned int  r,
unsigned int  g,
unsigned int  b 
)
constexpr

Definition at line 250 of file rgb.h.

◆ to_float()

constexpr float eu::colorutil::to_float ( U8  c)
constexpr

Definition at line 240 of file rgb.h.

◆ to_unsigned_char()

constexpr U8 eu::colorutil::to_unsigned_char ( float  f)
constexpr

Definition at line 245 of file rgb.h.