superturtle 0.1.1__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {superturtle-0.1.1 → superturtle-0.2.0}/PKG-INFO +1 -1
- {superturtle-0.1.1 → superturtle-0.2.0}/pyproject.toml +1 -1
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/animation.py +4 -1
- {superturtle-0.1.1 → superturtle-0.2.0}/README.md +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/__init__.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/easing.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/fancy_drawing.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/image.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/movement.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/stroke.py +0 -0
- {superturtle-0.1.1 → superturtle-0.2.0}/superturtle/test.py +0 -0
|
@@ -296,7 +296,10 @@ class Frame:
|
|
|
296
296
|
raise AnimationError("last_frame must be greater than first_frame")
|
|
297
297
|
period = (last_frame - first_frame) / cycles
|
|
298
298
|
ix = min(max(first_frame, self.index), last_frame)
|
|
299
|
-
|
|
299
|
+
if ix >= last_frame:
|
|
300
|
+
t = 1
|
|
301
|
+
else:
|
|
302
|
+
t = ((ix - first_frame) % period) / period
|
|
300
303
|
if mirror:
|
|
301
304
|
t = 1 - abs(2*t - 1)
|
|
302
305
|
if easing is None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|