OGS
Color.h File Reference

Detailed Description

Definition of the Color class.

Author
Karsten Rink
Date
2010-02-04

Definition in file Color.h.

#include <array>
#include <map>
#include <string>
Include dependency graph for Color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DataHolderLib
 

Typedefs

using DataHolderLib::Color = std::array<unsigned char, 4>
 

Functions

Color DataHolderLib::createColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
Color DataHolderLib::getRandomColor ()
 Returns a random RGB colour.
 
Color DataHolderLib::getColor (const std::string &id, std::map< std::string, DataHolderLib::Color > &colors)