h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

IncreasingColorShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for IncreasingColorShader:

StrokeShader List of all members.

Detailed Description

[ Color Shader ]. Assigns a varying color to the stroke. The user specifies 2 colors A and B. The stroke color will change linearly from A to B between the first and the last vertex.


Public Member Functions

 IncreasingColorShader (float iRm, float iGm, float iBm, float iAlpham, float iRM, float iGM, float iBM, float iAlphaM)
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

IncreasingColorShader float  iRm,
float  iGm,
float  iBm,
float  iAlpham,
float  iRM,
float  iGM,
float  iBM,
float  iAlphaM
[inline]
 

Builds the shader from 2 user-specified colors.

Parameters:
iRm The first color red component
iGm The first color green component
iBm The first color blue component
iAlpham The first color alpha value
iRM The second color red component
iGM The second color green component
iBM The second color blue component
iAlphaM The second color alpha value

Member Function Documentation

virtual void shade Stroke stroke  )  const [virtual]
 

The shading method.

Reimplemented from StrokeShader.


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