VPTissue Reference Manual
SimPT_Sim::Color Namespace Reference

Namespace for color utilities. More...

Typedefs

using hsv_t = std::tuple< double, double, double >
 

Functions

std::array< double, 3 > Hsv2Rgb (double h, double s, double v)
 
hsv_t interpolate (double x, hsv_t t_a, double x_a, hsv_t t_b, double x_b)
 
std::ostream & operator<< (std::ostream &os, hsv_t t)
 
array< double, 3 > Rgb2Hsv (double r, double g, double b)
 

Variables

const hsv_t black { 0.0 / 360.0, 0.0, 0.0 }
 
const hsv_t blue {240.0 / 360.0, 1.0, 1.0 }
 
const hsv_t cyan {180.0 / 360.0, 1.0, 1.0 }
 
const hsv_t gray { 0.0 / 360.0, 0.0, 0.5 }
 
const hsv_t lime {120.0 / 360.0, 1.0, 1.0 }
 
const hsv_t magenta {300.0 / 360.0, 1.0, 1.0 }
 
const hsv_t navy {240.0 / 360.0, 1.0, 0.5 }
 
const hsv_t red { 0.0 / 360.0, 1.0, 1.0 }
 
const hsv_t teal {180.0 / 360.0, 1.0, 0.5 }
 
const hsv_t white {180.0 / 360.0, 0.0, 1.0 }
 
const hsv_t yellow { 60.0 / 360.0, 1.0, 1.0 }
 

Detailed Description

Namespace for color utilities.