EasedValue#
- class ultimo.value.EasedValue(value=None, easing=<function linear>, delay=1, rate=0.05)#
A Value that gradually changes to a target when updated.
Methods
ease
()Asyncronously ease the value to the target value.
fire
()Set the async event to wake iterators.
sink
(source)Sink creator that updates the value from another source.
update
(value)Update the target value, starting the easing task if needed.
Attributes
An uasyncio Event which is set to wake the iterators.
- async ease()#
Asyncronously ease the value to the target value.
- event: uasyncio.Event#
An uasyncio Event which is set to wake the iterators.
- async fire()#
Set the async event to wake iterators.
- sink(source)#
Sink creator that updates the value from another source.
- async update(value)#
Update the target value, starting the easing task if needed.