izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
a60-svg-color.h File Reference
#include <map>
#include <algorithm>
#include <random>
#include <iomanip>
+ Include dependency graph for a60-svg-color.h:

Go to the source code of this file.

Classes

struct  svg::color_qf
 
struct  svg::color_qi
 Color quantified as integral RGB components in the range [0,255]. aka like Scalar in OpenCV. More...
 

Namespaces

namespace  svg
 

Typedefs

using svg::color_qfs = std::vector<color_qf>
 
using svg::color_qis = std::vector<color_qi>
 Types for Color iteration and combinatorics.
 

Enumerations

enum class  svg::color {
  svg::none , svg::white , svg::black , svg::gray10 , svg::gray20 , svg::gray25 , svg::gray30 , svg::gray40 ,
  svg::gray50 , svg::gray60 , svg::gray75 , svg::gray70 , svg::gray80 , svg::gray90 , svg::wcag_lgray , svg::wcag_gray ,
  svg::wcag_dgray , svg::kanzoiro , svg::kohakuiro , svg::kinsusutake , svg::daylily , svg::goldenyellow , svg::hellayellow , svg::antiquewhite ,
  svg::lemonchiffon , svg::goldenrod , svg::navajowhite , svg::ivory , svg::gold , svg::duboisyellow1 , svg::duboisyellow2 , svg::duboisyellow3 ,
  svg::orange , svg::darkorange , svg::asamaorange , svg::redorange , svg::orangered , svg::dutchorange , svg::internationalorange , svg::red ,
  svg::foreigncrimson , svg::ginshu , svg::akabeni , svg::akebonoiro , svg::ochre , svg::sohi , svg::benikaba , svg::benitobi ,
  svg::ake , svg::crimson , svg::tomato , svg::coral , svg::salmon , svg::duboisred1 , svg::duboisred2 , svg::duboisred3 ,
  svg::duboisbrown1 , svg::duboisbrown2 , svg::duboisbrown3 , svg::duboisbrown4 , svg::duboisbrown5 , svg::byakuroku , svg::usumoegi , svg::moegi ,
  svg::hiwamoegi , svg::midori , svg::rokusho , svg::aotakeiro , svg::seiheki , svg::seijiiro , svg::yanagizome , svg::green ,
  svg::chartreuse , svg::greenyellow , svg::limegreen , svg::springgreen , svg::aquamarine , svg::duboisgreen1 , svg::duboisgreen2 , svg::duboisgreen3 ,
  svg::duboisgreen4 , svg::duboisgreen5 , svg::blue , svg::ultramarine , svg::shinbashiiro , svg::hanada , svg::ruriiro , svg::bellflower ,
  svg::navy , svg::asagiiro , svg::indigo , svg::rurikon , svg::asamablue , svg::cyan , svg::lightcyan , svg::powderblue ,
  svg::steelblue , svg::cornflowerblue , svg::deepskyblue , svg::dodgerblue , svg::lightblue , svg::skyblue , svg::lightskyblue , svg::midnightblue ,
  svg::mediumblue , svg::royalblue , svg::darkslateblue , svg::slateblue , svg::azure , svg::crayolacerulean , svg::duboisblue1 , svg::duboisblue2 ,
  svg::duboisblue3 , svg::duboisblue4 , svg::blueprintlight , svg::blueprint , svg::blueprintdark , svg::wisteria , svg::murasaki , svg::ayameiro ,
  svg::peony , svg::futaai , svg::benimidori , svg::redwisteria , svg::botan , svg::kokimurasaki , svg::usuiro , svg::asamapink ,
  svg::blueviolet , svg::darkmagenta , svg::darkviolet , svg::thistle , svg::plum , svg::violet , svg::magenta , svg::dfuschia ,
  svg::deeppink , svg::hotpink , svg::pink , svg::kissmepink , svg::palevioletred , svg::mediumvioletred , svg::lavender , svg::orchid ,
  svg::mediumorchid , svg::darkestmagenta , svg::mediumpurple , svg::purple , svg::dustyrose , svg::atmosphericp , svg::command , svg::science ,
  svg::engineering , svg::last
}
 Color enumerated as types. More...
 

Functions

color_qi svg::average_color_qi (const color_qi &a, const color_qi &b)
 Average two colors, return the result.
 
color_qf::ftype svg::color_qf_distance (const color_qf &k1, const color_qf &k2)
 
bool svg::color_qf_lt (const color_qf &k1, const color_qf &k2)
 Forwarding function.
 
bool svg::color_qf_lt_hue_v1 (const color_qf &k1, const color_qf &k2)
 Less than compare for color_qf.
 
bool svg::color_qf_lt_hue_v2 (const color_qf &k1, const color_qf &k2)
 
bool svg::color_qf_lt_v (const color_qf &k1, const color_qf &k2)
 Default compare distances from k1,k2 to black.
 
color_qi svg::combine_color_qi (const color_qi &a, const double ad, const color_qi &b, const double bd)
 
color_qf svg::mutate_color_qf (const color_qf &k)
 Return a variant on saturation/value only.
 
bool svg::operator< (const color_qf &c1, const color_qf &c2)
 
bool svg::operator== (const color_qf &c1, const color_qf &c2)
 
bool svg::operator== (const color_qi &c1, const color_qi &c2)
 
const std::string & svg::to_string (const color e)
 Convert color to RGB color value string.
 
const std::string svg::to_string (const color_qf klr)
 Convert color_qf to string.
 
const std::string svg::to_string (const color_qi klr)
 Convert color_qi to string.
 

Variables

constexpr uint svg::color_max_size = static_cast<uint>(color::last)
 Total number of enumerated colors.