Skip to content

Commit fdfce0b

Browse files
add 'Clock.interpolate()'
1 parent bdc37c7 commit fdfce0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/asyncgui_ext/clock.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ async def interpolate_scalar(self, start, end, *, duration, step=0, transition=_
336336
await self.sleep(0)
337337
yield transition(1.) * slope + start
338338

339+
interpolate = interpolate_scalar
340+
'''
341+
An alias for :meth:`interpolate_scalar`.
342+
343+
.. versionadded:: 0.5.2
344+
'''
345+
339346
async def interpolate_sequence(self, start, end, *, duration, step=0, transition=_linear, output_type=tuple) -> AsyncIterator:
340347
'''
341348
Same as :meth:`interpolate_scalar` except this one is for sequence type.

0 commit comments

Comments
 (0)