Blender  V3.3
Public Member Functions | List of all members
Freestyle::StrokeShaders::IncreasingColorShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::IncreasingColorShader:
Freestyle::StrokeShader

Public Member Functions

 IncreasingColorShader (float iRm, float iGm, float iBm, float iAlpham, float iRM, float iGM, float iBM, float iAlphaM)
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
voidpy_ss
 

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.

Definition at line 279 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ IncreasingColorShader()

Freestyle::StrokeShaders::IncreasingColorShader::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
iRmThe first color red component
iGmThe first color green component
iBmThe first color blue component
iAlphamThe first color alpha value
iRMThe second color red component
iGMThe second color green component
iBMThe second color blue component
iAlphaMThe second color alpha value

Definition at line 303 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::StrokeShaders::IncreasingColorShader::getName ( ) const
inlinevirtual

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 324 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::IncreasingColorShader::shade ( Stroke stroke) const
virtual

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