Color Struct Reference

API: cFigure::Color Struct Reference
API
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.