Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

PIAVE::Color Class Reference

Color. More...

#include <piave_base.hh>

List of all members.

Public Methods

 Color (const std::string &c)
 construct color from a string in format #123456 or #123456FF where 12, 34, and 56 are the color values in either RGB or YUV space.

std::string toString3 () const
 serialize a Color to a ostream is used when writing properties to XML nodes


Detailed Description

Color.


Constructor & Destructor Documentation

Color::Color const std::string &    c
 

construct color from a string in format #123456 or #123456FF where 12, 34, and 56 are the color values in either RGB or YUV space.

A fourth value may define the alpha channel.

Todo:
FIXME make leading '#' optional


The documentation for this class was generated from the following files:
Generated on Tue Oct 14 20:45:37 2003 for piave by doxygen1.2.18