HOG2
Classes | Namespaces | Functions | Variables
Colors.h File Reference
#include <string>
Include dependency graph for Colors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rgbColor
 A color; r/g/b are between 0...1. More...
 

Namespaces

 Colors
 

Functions

bool operator== (const rgbColor &r1, const rgbColor &r2)
 
bool operator!= (const rgbColor &r1, const rgbColor &r2)
 
rgbColor Colors::GetColor (float v, float vmin, float vmax, int type)
 Given min/max values, get a color from a color schema. More...
 

Variables

const rgbColor Colors::black = {0.0,0.0,0.0}
 
const rgbColor Colors::white = {1.0,1.0,1.0}
 
const rgbColor Colors::gray = {0.5,0.5,0.5}
 
const rgbColor Colors::bluegray = {0.4,0.5,0.6}
 
const rgbColor Colors::darkgray = {0.25,0.25,0.25}
 
const rgbColor Colors::darkbluegray = {0.15,0.25,0.35}
 
const rgbColor Colors::lightgray ={0.75,0.75,0.75}
 
const rgbColor Colors::lightbluegray ={0.65,0.75,0.85}
 
const rgbColor Colors::red = {1.0,0.0,0.0}
 
const rgbColor Colors::darkred = {0.5,0.0,0.0}
 
const rgbColor Colors::lightred = {1.0,0.5,0.5}
 
const rgbColor Colors::lighterred = {1.0,0.75,0.75}
 
const rgbColor Colors::brown = {0.5,0.25,0.0}
 
const rgbColor Colors::lightbrown = {0.75,0.5,0.25}
 
const rgbColor Colors::green = {0.0,1.0,0.0}
 
const rgbColor Colors::darkgreen = {0.0,0.5,0.0}
 
const rgbColor Colors::lightgreen = {0.5,1.0,0.5}
 
const rgbColor Colors::bluegreen = {0.0f,0.65f,0.5f}
 
const rgbColor Colors::blue = {0.0,0.0,1.0}
 
const rgbColor Colors::darkblue = {0.0,0.0,0.5}
 
const rgbColor Colors::lightblue = {0.5,0.5,1.0}
 
const rgbColor Colors::lighterblue = {0.75,0.75,1.0}
 
const rgbColor Colors::lightyellow = {1.0,1.0,0.5}
 
const rgbColor Colors::yellow = {1.0,1.0,0.0}
 
const rgbColor Colors::darkyellow = {0.5,0.5,0.0}
 
const rgbColor Colors::magenta = {1.0,0.0,1.0}
 
const rgbColor Colors::purple = {0.5,0.0,1.0}
 
const rgbColor Colors::darkpurple = {0.25,0.0,0.5}
 
const rgbColor Colors::cyan = {0.0,1.0,1.0}
 
const rgbColor Colors::orange = {1.0,0.5,0.0}
 
const rgbColor Colors::pink = {1.0,0.0,0.5}
 
const rgbColor Colors::cb0 = {0, 0, 0}
 
const rgbColor Colors::cb1 = {0, 114.0f/255.0f, 178/255.0f}
 
const rgbColor Colors::cb2 = {204/255.0f, 121/255.0f, 167/255.0f}
 
const rgbColor Colors::cb3 = {230/255.0f, 159/255.0f, 0}
 
const rgbColor Colors::cb4 = {86/255.0f, 180/255.0f, 233/255.0f}
 
const rgbColor Colors::cb5 = {213/255.0f, 94/255.0f, 0}
 

Function Documentation

◆ operator!=()

bool operator!= ( const rgbColor r1,
const rgbColor r2 
)

Definition at line 11 of file Colors.cpp.

◆ operator==()

bool operator== ( const rgbColor r1,
const rgbColor r2 
)

Definition at line 16 of file Colors.cpp.

References rgbColor::b, rgbColor::g, and rgbColor::r.