Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
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

float getPeriod ()
 Returns the time to transition from A to B then back to A again.
 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.

float getPeriod ( )

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

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