insightdock::charts::Color

RGBA color with 8-bit per channel.

Synopsis

Declared in <insightdock/color.h>
struct Color;

Member Functions

Name Description
Color [constructor]Constructors

Static Member Functions

Name Description
black
gray Gray shade (r = g = b).
rgb Opaque RGB color (alpha = 255).
rgba RGBA color with explicit alpha.
transparent
white

Data Members

Name Description
a Alpha (0 = transparent, 255 = opaque).
b Blue component (0–255).
g Green component (0–255).
r Red component (0–255).

Non-Member Functions

Name Description
colorblind_colorColor from the Okabe-Ito colorblind-safe palette.
palette_colorColor from the default 12-color Chart.js palette.
palette_color_by_kindColor from a specific palette kind.
tableau10_colorColor from the Tableau 10 palette.

Description

Used throughout rendering for fills, strokes, and text.

Created with MrDocs