izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
a60-svg-color-palette.h File Reference

Go to the source code of this file.

Namespaces

namespace  svg
 

Typedefs

template<typename T, std::size_t N>
using svg::palette = std::array<T, N>
 Palette, finite set of colors used. Must end with color::none.
 
template<std::size_t N>
using svg::palette_qf = palette<color_qf, N>
 
template<std::size_t N>
using svg::palette_qi = palette<color_qi, N>
 

Functions

auto & svg::active_spectrum (const bool sortbyhuep=false)
 Oklab https://bottosson.github.io/posts/oklab/.
 
color_qi svg::next_color (const color_qi klr)
 Loop through color array starting at position c. Iff klr is not found, return color::none as the next color.
 
template<typename _Spectrm>
color_qi svg::random_color (const _Spectrm &spectrm, const uint startoffset=0)
 
color_qi svg::random_color (const uint startoffset=0)
 Random entry from array above.
 
color_qi svg::start_at_color (const color_qi klr)
 Start at specified color bar entry point.
 

Variables

static const palette_qi< 73 > svg::ciecam02_palette
 
static const palette_qi< 19 > svg::colorbrewer2s3s_palette
 ColorBrewer 2.0 https://colorbrewer2.org.
 
static const palette_qi< 43 > svg::colorbrewer2s7s_palette
 Single hue 7-class sequential, low to high.
 
static const palette_qi< 55 > svg::colorbrewer2s9s_palette
 Single hue 9-class sequential, low to high.
 
static const palette_qi< color_max_size - 20 > svg::izzi_hue_palette
 Only color no black and white or gray.
 
static const palette_qi< color_max_size - 4 > svg::izzi_palette
 Default colors for izzi.
 
static const palette_qi< 118 > svg::jp_palette
 Japan colors (118) https://en.wikipedia.org/wiki/Traditional_colors_of_Japan.