From 0428b8ff4c9076512f1d9d81f6e879bc828b67e6 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Thu, 6 Oct 2022 14:15:11 +0100 Subject: [PATCH] Small typo fixes --- docs/guide/animator.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/animator.md b/docs/guide/animator.md index 8c9d1e4ed..e7509ff46 100644 --- a/docs/guide/animator.md +++ b/docs/guide/animator.md @@ -52,7 +52,7 @@ You can animate `float` values and any type which implements the `Animatable` pr To implement the `Animatable` protocol, add a `def blend(self: T, destination: T, factor: float) -> T` method to the class. The `blend` method should return a new object which represents `self` blended with `destination` by a factor of `factor`. -The animator will repeatedly call this method to retrieve the current value to display for the current. +The animator will repeatedly call this method to retrieve the current animated value. An example of an object which implements this protocol is [Color][textual.color.Color]. It follows that you can use `animate` to animate from one `Color` to another. @@ -131,7 +131,7 @@ You can preview the built-in easing functions by running `textual easing`, and c To run some code when the animation completes, you can pass a callable object as the `on_complete` argument to the `animate` method. Here's how we might extend the example above to ring the terminal bell when the animation ends: -```python hl_lines="14" +```python hl_lines="15" --8<-- "docs/examples/guide/animator/animation03.py" ```