Panda3D
Public Member Functions | Static Public Member Functions

ColorInterpolationFunctionSinusoid Class Reference

Defines a sinusoidal blending between two colors. More...

Inheritance diagram for ColorInterpolationFunctionSinusoid:
ColorInterpolationFunctionLinear ColorInterpolationFunctionConstant ColorInterpolationFunction

List of all members.

Public Member Functions

VBase4 getColorA ()
 Returns the primary color of the function.
VBase4 getColorB ()
 Returns the secondary color of the function.
float getPeriod ()
 Returns the time to transition from A to B then back to A again.
 setColorA (VBase4 const c)
 Sets the primary color of the function.
 setColorB (VBase4 const c)
 Sets the secondary color of the function.
 setPeriod (float p)
 Sets the time to transition from A to B then back to A again.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

Defines a sinusoidal blending between two colors.

A period of "1" corresponds to a single transition from color_a to color_b and then back to color_a over the course of the segment's lifetime. A shorter period will result in a higher frequency cycle.


Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from ColorInterpolationFunctionLinear.

VBase4 getColorA ( ) [inherited]

Returns the primary color of the function.

VBase4 getColorB ( ) [inherited]

Returns the secondary color of the function.

float getPeriod ( )

Returns the time to transition from A to B then back to A again.

setColorA ( VBase4 const  c) [inherited]

Sets the primary color of the function.

setColorB ( VBase4 const  c) [inherited]

Sets the secondary color of the function.

setPeriod ( float  p)

Sets the time to transition from A to B then back to A again.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties