Skip to main content

Keyframe

Keyframe

Single keyframe of AnimationCurve. Note that AnimationCurve relies on Keyframes to be static, so treat them as immutable. Do not change keyframe values unless you understand the implications of doing so.

Kind: global class
Author: Alex Goldring
Copyright: Company Named Limited (c) 2025

keyframe.value : number

Kind: instance property of Keyframe

keyframe.time : number

Timestamp/position for the value

Kind: instance property of Keyframe

keyframe.inTangent : number

Incoming tangent, affects the slope of the curve from previous key

Kind: instance property of Keyframe

keyframe.outTangent : number

Outgoing tangent, affect the slope of the curve from this key to the next key

Kind: instance property of Keyframe

keyframe.isKeyframe : boolean

Useful for type checks

Kind: instance property of Keyframe
Read only: true

keyframe.set(time, value, inTangent, outTangent)

Kind: instance method of Keyframe

ParamType
timenumber
valuenumber
inTangentnumber
outTangentnumber

keyframe.copy(other)

Kind: instance method of Keyframe

ParamType
otherKeyframe

keyframe.clone() ⇒ Keyframe

Kind: instance method of Keyframe

keyframe.equals(other) ⇒ boolean

Kind: instance method of Keyframe

ParamType
otherKeyframe

keyframe.hash() ⇒ number

Kind: instance method of Keyframe

Keyframe.from(time, value, inTangent, outTangent) ⇒ Keyframe

Kind: static method of Keyframe

ParamTypeDefault
timenumber
valuenumber
inTangentnumber0
outTangentnumber0