OMNeT++ API 6.1
Discrete Event Simulation Library
cFigure::Color Struct Reference

Description

Represents an RGB color.

Conversion from string exists, and accepts HTML colors (#rrggbb), HSB colors in a similar notation (@hhssbb), and English color names (SVG color names, to be more precise.) Predefined constants for the basic colors (see BLACK, WHITE, GREY, RED, GREEN, BLUE, YELLOW, CYAN, MAGENTA), as well as a collection of good dark and light colors, suitable for e.g. chart drawing (see GOOD_DARK_COLORS and GOOD_LIGHT_COLORS) are provided.

Public Member Functions

Methods.
 Color ()
 
 Color (uint8_t red, uint8_t green, uint8_t blue)
 
 Color (const char *color)
 
 Color (const Color &other)=default
 
bool operator== (const Color &other) const
 
std::string str () const
 

Public Attributes

RGB color components.
uint8_t red = 0
 
uint8_t green = 0
 
uint8_t blue = 0
 

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