DOMCurveExtended

From Virtual World Web Wiki
Jump to: navigation, search

Represents a DOMCurve in JavaScript. This DOM object represents an animation of the DOM. A Curve is made up of Keyframes with Values. A Player plays the curve and it's properties reflect the values at any given moment along the curve, and can project those values onto other objects in the DOM via it's Selector. You can create a new DOMCurve via the CreateCurve and CreateCurveFromJson methods of DOMObject.

Remarks [edit]

Methods

DOMCurveKeyframeExtended CreateKeyframe(float time, string title = NULL)
Creates a new keyframe at the specified time on this curve
DOMCurvePlayerExtended CreatePlayer(string title = NULL)
Creates a new player on this curve
string ToJson()
Creates a stringified JSON object in the JSON Curve Definition format from this curve.