HOG2
Functions | Variables
Colors Namespace Reference

Functions

rgbColor GetColor (float v, float vmin, float vmax, int type)
 Given min/max values, get a color from a color schema. More...
 

Variables

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

Function Documentation

◆ GetColor()

rgbColor Colors::GetColor ( float  v,
float  vmin,
float  vmax,
int  type 
)

Given min/max values, get a color from a color schema.

Definition at line 24 of file Colors.cpp.

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

Referenced by MapOverlay::Draw(), DWG::DynamicWeightedGrid< sectorSize >::Draw(), CanonicalGrid::CanonicalGrid::Draw(), MapEnvironment::Draw(), SnakeBird::SnakeBird::Draw(), CanonicalGrid::CanonicalGrid::DrawAlternate(), MapEnvironment::DrawAlternate(), CanonicalGrid::CanonicalGrid::DrawArrow(), MapEnvironment::DrawArrow(), CanonicalGrid::CanonicalGrid::DrawBasicOrdering(), SnakeBird::SnakeBird::DrawLabel(), CanonicalGrid::CanonicalGrid::DrawLine(), MapEnvironment::DrawLine(), CanonicalGrid::CanonicalGrid::DrawOrdering(), SnakeBird::SnakeBird::DrawSmallLabel(), CanonicalGrid::CanonicalGrid::DrawStateLabel(), MapEnvironment::DrawStateLabel(), MapOverlay::GetValueColor(), CanonicalGrid::CanonicalGrid::GLDrawLine(), MapEnvironment::GLDrawLine(), CanonicalGrid::CanonicalGrid::GLLabelState(), MapEnvironment::GLLabelState(), MapOverlay::OpenGLDraw(), GenericSearchUnit< state, action, environment >::OpenGLDraw(), VoxelGrid::OpenGLDraw(), AirplaneEnvironment::OpenGLDraw(), CanonicalGrid::CanonicalGrid::OpenGLDraw(), Voxels::OpenGLDraw(), MapEnvironment::OpenGLDraw(), Fling::OpenGLDraw(), MapOverlay::SVGDraw(), CanonicalGrid::CanonicalGrid::SVGDraw(), MapEnvironment::SVGDraw(), CanonicalGrid::CanonicalGrid::SVGDrawLine(), MapEnvironment::SVGDrawLine(), CanonicalGrid::CanonicalGrid::SVGFrameRect(), MapEnvironment::SVGFrameRect(), CanonicalGrid::CanonicalGrid::SVGLabelState(), and MapEnvironment::SVGLabelState().

Variable Documentation

◆ black

const rgbColor Colors::black = {0.0,0.0,0.0}

◆ blue

const rgbColor Colors::blue = {0.0,0.0,1.0}

◆ bluegray

const rgbColor Colors::bluegray = {0.4,0.5,0.6}

Definition at line 122 of file Colors.h.

◆ bluegreen

const rgbColor Colors::bluegreen = {0.0f,0.65f,0.5f}

◆ brown

const rgbColor Colors::brown = {0.5,0.25,0.0}

◆ cb0

const rgbColor Colors::cb0 = {0, 0, 0}

Definition at line 158 of file Colors.h.

◆ cb1

const rgbColor Colors::cb1 = {0, 114.0f/255.0f, 178/255.0f}

Definition at line 159 of file Colors.h.

◆ cb2

const rgbColor Colors::cb2 = {204/255.0f, 121/255.0f, 167/255.0f}

Definition at line 160 of file Colors.h.

◆ cb3

const rgbColor Colors::cb3 = {230/255.0f, 159/255.0f, 0}

Definition at line 161 of file Colors.h.

◆ cb4

const rgbColor Colors::cb4 = {86/255.0f, 180/255.0f, 233/255.0f}

Definition at line 162 of file Colors.h.

◆ cb5

const rgbColor Colors::cb5 = {213/255.0f, 94/255.0f, 0}

Definition at line 163 of file Colors.h.

◆ cyan

const rgbColor Colors::cyan = {0.0,1.0,1.0}

◆ darkblue

const rgbColor Colors::darkblue = {0.0,0.0,0.5}

◆ darkbluegray

const rgbColor Colors::darkbluegray = {0.15,0.25,0.35}

Definition at line 124 of file Colors.h.

Referenced by DWG::DynamicWeightedGrid< sectorSize >::GetTerrainColor().

◆ darkgray

const rgbColor Colors::darkgray = {0.25,0.25,0.25}

◆ darkgreen

const rgbColor Colors::darkgreen = {0.0,0.5,0.0}

◆ darkpurple

const rgbColor Colors::darkpurple = {0.25,0.0,0.5}

Definition at line 152 of file Colors.h.

◆ darkred

const rgbColor Colors::darkred = {0.5,0.0,0.0}

Definition at line 129 of file Colors.h.

Referenced by SnakeBird::SnakeBird::Draw(), and SnakeBird::SnakeBird::DrawObject().

◆ darkyellow

const rgbColor Colors::darkyellow = {0.5,0.5,0.0}

Definition at line 149 of file Colors.h.

Referenced by DWG::DynamicWeightedGrid< sectorSize >::GetTerrainColor().

◆ gray

const rgbColor Colors::gray = {0.5,0.5,0.5}

◆ green

const rgbColor Colors::green = {0.0,1.0,0.0}

◆ lightblue

const rgbColor Colors::lightblue = {0.5,0.5,1.0}

◆ lightbluegray

const rgbColor Colors::lightbluegray ={0.65,0.75,0.85}

Definition at line 126 of file Colors.h.

◆ lightbrown

const rgbColor Colors::lightbrown = {0.75,0.5,0.25}

Definition at line 133 of file Colors.h.

Referenced by DWG::DynamicWeightedGrid< sectorSize >::GetTerrainColor().

◆ lighterblue

const rgbColor Colors::lighterblue = {0.75,0.75,1.0}

Definition at line 145 of file Colors.h.

◆ lighterred

const rgbColor Colors::lighterred = {1.0,0.75,0.75}

Definition at line 131 of file Colors.h.

◆ lightgray

const rgbColor Colors::lightgray ={0.75,0.75,0.75}

◆ lightgreen

const rgbColor Colors::lightgreen = {0.5,1.0,0.5}

Definition at line 137 of file Colors.h.

◆ lightred

const rgbColor Colors::lightred = {1.0,0.5,0.5}

Definition at line 130 of file Colors.h.

◆ lightyellow

const rgbColor Colors::lightyellow = {1.0,1.0,0.5}

Definition at line 147 of file Colors.h.

Referenced by DWG::DynamicWeightedGrid< sectorSize >::GetTerrainColor().

◆ magenta

const rgbColor Colors::magenta = {1.0,0.0,1.0}

Definition at line 150 of file Colors.h.

◆ orange

const rgbColor Colors::orange = {1.0,0.5,0.0}

◆ pink

const rgbColor Colors::pink = {1.0,0.0,0.5}

Definition at line 156 of file Colors.h.

◆ purple

const rgbColor Colors::purple = {0.5,0.0,1.0}

◆ red

const rgbColor Colors::red = {1.0,0.0,0.0}

◆ white

const rgbColor Colors::white = {1.0,1.0,1.0}

◆ yellow

const rgbColor Colors::yellow = {1.0,1.0,0.0}