Add red/green/blue static colour definitions

This commit is contained in:
Danny Robson 2013-07-30 23:50:37 +10:00
parent cca9efdc5d
commit 745568db87
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,10 @@ using namespace util;
const util::colour util::colour::WHITE ({ 1.0, 1.0, 1.0, 1.0 });
const util::colour util::colour::BLACK ({ 0.0, 0.0, 0.0, 1.0 });
const util::colour util::colour::RED ({ 1.0, 0.0, 0.0, 1.0 });
const util::colour util::colour::GREEN ({ 0.0, 1.0, 0.0, 1.0 });
const util::colour util::colour::BLUE ({ 0.0, 0.0, 1.0, 1.0 });
//-----------------------------------------------------------------------------
const json::node&

View File

@ -34,6 +34,9 @@ namespace util {
static const colour WHITE;
static const colour BLACK;
static const colour RED;
static const colour BLUE;
static const colour GREEN;
};
template <> colour& randomise (colour&);