API > Keyframe
Keyframe⚓︎
A single keyframe that can be injected into an animation curve.
Members⚓︎
Properties⚓︎
Name | Description |
---|---|
Keyframe .inTangent |
Sets the incoming tangent for this key. The incoming tangent affects the slope of the curve from the previous key to this key. |
Keyframe .inWeight |
Sets the incoming weight for this key. The incoming weight affects the slope of the curve from the previous key to this key. |
Keyframe .outTangent |
Sets the outgoing tangent for this key. The outgoing tangent affects the slope of the curve from this key to the next key. |
Keyframe .outWeight |
Sets the outgoing weight for this key. The outgoing weight affects the slope of the curve from this key to the next key. |
Keyframe .time |
The time of the keyframe. In a 2D graph you could think of this as the x-value. |
Keyframe .weightedMode |
Weighted mode for the keyframe. |
Constructor⚓︎
Name | Description |
---|---|
Keyframe( time, value) |
Create a keyframe. |