classPiiColor
#include <PiiColor.h>
A three-channel color.
Inherits PiiColorBase< T >, PiiArithmeticBase< PiiColor< T >, PiiColorTraits< T > >
Description
This class adds support for arithmetic operations to PiiColorBase.
Public types
|
enum
|
{ ChannelCount = 3 }
|
|
Shorthand for the base class type. |
Constructors and destructor
|
Create a new color with the given values for color channels. |
|
|
Create a new color with the same value on each color channel. |
|
|
Copy any three or four channel color. |
|
|
template<class U>
|
Create a typecasted copy of any other color. |
|
Copy another three-channel color. |
Public member functions
|
( )
An stl-style const iterator to the end of color channels. |
|
|
( )
An stl-style iterator to the end of color channels. |
Friends
|
friend struct
|
|
Enumeration details
-
enum @10
Function details
-
Create a new color with the given values for color channels.
// Parameters: R, G, B PiiColor<> blue(0, 0, 255);
-
Create a new color with the same value on each color channel.
-
Copy any three or four channel color.
If
clrhas a fourth color channel, it'll be ignored. -
Create a typecasted copy of any other color.
If
clrhas a fourth color channel, it'll be ignored. -
Copy another three-channel color.
-
template<class Archive>
void serialize
(- Archive & archive
- const unsigned int
[inline] -
An stl-style const iterator to the end of color channels.
-
An stl-style iterator to the end of color channels.
Add a note
Not a single note added yet. Be the first, add yours.