an.adapters.cutout.channel#
Channel evaluation — moved to an.timing.channel (the timing kernel).
This path keeps working for every existing caller; new code imports from
an.timing. **This module’s names are the executable spec of
runtime.js’s evaluateChannel``** (with the default ``kind=None: by value
type), pinned by tests/test_cutout_channel_parity.py.
>>> ch = Channel("a", "x", [Keyframe(0.0, 0.0), Keyframe(1.0, 10.0)])
>>> evaluate(ch, 0.5)
5.0
Functions
|
Evaluate |
|
Why |
Classes
|
Sorted keyframes for one property of one target. |
|
One keyframe: time, value, optional per-segment easing. |
- class an.adapters.cutout.channel.Channel(target, property, keyframes=<factory>)[source]#
Bases:
objectSorted keyframes for one property of one target.
Construction validates that
keyframesis non-empty and sorted.
- class an.adapters.cutout.channel.Keyframe(time, value, easing=None)[source]#
Bases:
objectOne keyframe: time, value, optional per-segment easing.
The easing on a keyframe describes the curve leaving that keyframe toward the next one. The last keyframe’s easing is therefore unused.