Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::linear_rgb_interpolator< ColorT > Struct Template Reference

Interpolate in the linear RGB colorspace. More...

#include <LinearRGB.h>

Public Types

typedef ColorT color_type
 

Public Member Functions

 linear_rgb_interpolator (color_type c1, color_type c2, size_t len)
 
void operator++ ()
 
color_type color () const
 

Detailed Description

template<class ColorT>
struct gnash::linear_rgb_interpolator< ColorT >

Interpolate in the linear RGB colorspace.

This is an inefficient interpolation method because the ratio is transformed on the fly to convert between linear RGB and sRGB colorspaces.

Member Typedef Documentation

§ color_type

template<class ColorT >
typedef ColorT gnash::linear_rgb_interpolator< ColorT >::color_type

Constructor & Destructor Documentation

§ linear_rgb_interpolator()

template<class ColorT >
gnash::linear_rgb_interpolator< ColorT >::linear_rgb_interpolator ( color_type  c1,
color_type  c2,
size_t  len 
)
inline

Member Function Documentation

§ color()

template<class ColorT >
color_type gnash::linear_rgb_interpolator< ColorT >::color ( ) const
inline

References gnash::cdiff().

§ operator++()

template<class ColorT >
void gnash::linear_rgb_interpolator< ColorT >::operator++ ( )
inline

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