Murl Engine Lua Addon API  Version 1.0 beta
Murl.Logic.AnimationKey.Color

A template class to create key objects for the Animation class.


Table members

Typedefs


Murl.Logic.AnimationKey.Color.ValueType

The template parameter value type.

Returns
Murl.Color


Functions


Murl.Logic.AnimationKey.Color.new()

The default constructor.

Murl.Logic.AnimationKey.Color new()

Returns
Murl.Logic.AnimationKey.Color

Murl.Logic.AnimationKey.Color.new(time, value)

The constructor including time and value.

Murl.Logic.AnimationKey.Color new(Number time, Murl.Color value)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
Returns
Murl.Logic.AnimationKey.Color

Murl.Logic.AnimationKey.Color.new(time, value, interpolation)

The constructor including time, value and interpolation.

Murl.Logic.AnimationKey.Color new(Number time, Murl.Color value, Murl.IEnums.Interpolation interpolation)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
interpolationThe interpolation type.
Returns
Murl.Logic.AnimationKey.Color

Murl.Logic.AnimationKey.Color.new(time, value, linear)

The constructor including time, value and linear flag.

Murl.Logic.AnimationKey.Color new(Number time, Murl.Color value, Boolean linear)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
lineartrue for linear interpolation, false for constant interpolation.
Returns
Murl.Logic.AnimationKey.Color


Methods


IsEqual(other)

Compare the animation key to another one.

Boolean IsEqual(Murl.Logic.AnimationKey.Color other)

Parameters
otherThe key to compare.
Returns
Boolean true if both keys are identical.


Metamethods


The equal to operator.

The "equal to" comparison operator, calls IsEqual().

Returns
Boolean = Murl.Logic.AnimationKey.Color == Murl.Logic.AnimationKey.Color


Instance Members


mTime

The time of the key.

Returns
Number

mValue

The value of the key.

Returns
Murl.Color

mInterpolation

The interpolation type of the key.

Returns
Murl.IEnums.Interpolation