Logo Search packages:      
Sourcecode: inkscape version File versions

ColorRGBA Class Reference

#include <color-rgba.h>

List of all members.

Detailed Description

A class to contain a floating point RGBA color.


A class to handle a RGBA color as one unit.

Definition at line 22 of file color-rgba.h.

Public Member Functions

ColorRGBA average (const ColorRGBA second, const float weight=0.5) const
 Average two ColorRGBAs to create another one.
 ColorRGBA (float in_array[4])
 Create a ColorRGBA using an array of floats.
 ColorRGBA (void)
 Create a quick ColorRGBA with all zeros.
 ColorRGBA (float c0, float c1, float c2, float c3)
 A constructor to create the color from four floating point values.
ColorRGBAoperator= (ColorRGBA const &m)
 Overwrite the values in this object with another ColorRGBA.
bool operator== (const ColorRGBA other) const
 Check to ensure that two ColorRGBA's are equal.
float operator[] (unsigned int const i) const
 Grab a particular value from the ColorRGBA object.

Private Attributes

float _c [4]
 Array of values that are stored.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index