Euphoria
eu::Rgbi Struct Reference

#include <rgb.h>

Public Member Functions

constexpr Rgbi (U8 red, U8 green, U8 blue)
 
constexpr Rgbi (U8 gray)
 
constexpr Rgbi (NamedColor color)
 
constexpr Rgbi (const Rgb &c)
 
constexpr int to_hex () const
 

Static Public Member Functions

constexpr static Rgbi from_hex (unsigned int hex)
 

Public Attributes

U8 r
 
U8 g
 
U8 b
 

Detailed Description

Definition at line 25 of file rgb.h.

Constructor & Destructor Documentation

◆ Rgbi() [1/4]

constexpr eu::Rgbi::Rgbi ( U8  red,
U8  green,
U8  blue 
)
constexpr

Definition at line 326 of file rgb.h.

◆ Rgbi() [2/4]

constexpr eu::Rgbi::Rgbi ( U8  gray)
explicitconstexpr

Definition at line 333 of file rgb.h.

◆ Rgbi() [3/4]

constexpr eu::Rgbi::Rgbi ( NamedColor  color)
constexpr

Definition at line 340 of file rgb.h.

◆ Rgbi() [4/4]

constexpr eu::Rgbi::Rgbi ( const Rgb c)
explicitconstexpr

Definition at line 347 of file rgb.h.

Member Function Documentation

◆ from_hex()

constexpr Rgbi eu::Rgbi::from_hex ( unsigned int  hex)
staticconstexpr

Definition at line 355 of file rgb.h.

◆ to_hex()

constexpr int eu::Rgbi::to_hex ( ) const
constexpr

Definition at line 368 of file rgb.h.

Member Data Documentation

◆ b

U8 eu::Rgbi::b

Definition at line 29 of file rgb.h.

◆ g

U8 eu::Rgbi::g

Definition at line 28 of file rgb.h.

◆ r

U8 eu::Rgbi::r

Definition at line 27 of file rgb.h.


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