37 template<
typename Color >
48 template<
typename Color >
51 return m_palette.size();
60 template<
typename Color >
64 assert( i < m_palette.size() );
75 template<
typename Color >
79 assert( i < m_palette.size() );
90 template<
typename Color >
94 assert( i < m_palette.size() );
Color color_type
The type of the colors stored in the palette.
color_type & operator[](unsigned int i)
Get a color from the palette.
const color_type & operator()(unsigned int i) const
Get the value of a color from the palette.
color_palette(unsigned int n)
Constructor.
unsigned int size() const
Get the number of colors in the palette.