superturtle 0.2.0__tar.gz → 1.0.1__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.2.0 → superturtle-1.0.1}/PKG-INFO +7 -5
- {superturtle-0.2.0 → superturtle-1.0.1}/pyproject.toml +8 -7
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/animation.py +7 -1
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/image.py +1 -1
- {superturtle-0.2.0 → superturtle-1.0.1}/README.md +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/__init__.py +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/easing.py +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/fancy_drawing.py +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/movement.py +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/stroke.py +0 -0
- {superturtle-0.2.0 → superturtle-1.0.1}/superturtle/test.py +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: superturtle
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Extensions to Python's turtle
|
|
5
|
+
License: MIT
|
|
5
6
|
Author: Chris Proctor
|
|
6
7
|
Author-email: chris@chrisproctor.net
|
|
7
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.10,<4.0
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
10
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
-
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
15
|
Description-Content-Type: text/markdown
|
|
14
16
|
|
|
15
17
|
# Superturtle
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
[
|
|
1
|
+
[project]
|
|
2
2
|
name = "superturtle"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "1.0.1"
|
|
4
4
|
description = "Extensions to Python's turtle"
|
|
5
|
-
authors = [
|
|
5
|
+
authors = [
|
|
6
|
+
{name="Chris Proctor", email="chris@chrisproctor.net"}
|
|
7
|
+
]
|
|
8
|
+
license = {text = "MIT"}
|
|
6
9
|
readme = "README.md"
|
|
7
10
|
documentation = "https://superturtle.readthedocs.io/en/latest/"
|
|
8
|
-
|
|
9
|
-
[tool.poetry.dependencies]
|
|
10
|
-
python = "^3.9"
|
|
11
|
+
requires-python = ">=3.10,<4.0"
|
|
11
12
|
|
|
12
13
|
[tool.poetry.group.docs]
|
|
13
14
|
optional = true
|
|
@@ -23,5 +24,5 @@ optional = true
|
|
|
23
24
|
pytest = "^5.2"
|
|
24
25
|
|
|
25
26
|
[build-system]
|
|
26
|
-
requires = ["poetry-core>=
|
|
27
|
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
27
28
|
build-backend = "poetry.core.masonry.api"
|
|
@@ -96,7 +96,7 @@ def animate(frames=1, loop=False, debug=False, gif_filename=None):
|
|
|
96
96
|
|
|
97
97
|
if gif_filename:
|
|
98
98
|
loopflag = "-loop 0 " if loop else ""
|
|
99
|
-
run(f"
|
|
99
|
+
run(f"magick -delay 5 -dispose Background {loopflag}{FRAMES_PATH}/frame_*.eps {gif_filename}", shell=True, check=True)
|
|
100
100
|
rmtree(FRAMES_PATH)
|
|
101
101
|
|
|
102
102
|
class Frame:
|
|
@@ -108,6 +108,12 @@ class Frame:
|
|
|
108
108
|
A transformation is a change to the picture which gradually changes from frame
|
|
109
109
|
to frame. The three supported transformations are `rotate`, `scale`, and
|
|
110
110
|
`translate`.
|
|
111
|
+
|
|
112
|
+
The transformations provided by Superturtle animation frames (`rotate`, `translate`, `scale`)
|
|
113
|
+
only work for relative turtle movement (e.g. `forward`, `back`, `left`, `right`).
|
|
114
|
+
Absolute turtle movement (e.g. `goto`, `setheading`) will not be affected by
|
|
115
|
+
transformations.
|
|
116
|
+
|
|
111
117
|
"""
|
|
112
118
|
def __init__(self, num_frames, index=0, debug=False):
|
|
113
119
|
self.debug = debug
|
|
@@ -15,7 +15,7 @@ def save(filename):
|
|
|
15
15
|
"""
|
|
16
16
|
temp_file = Path("_temp.eps")
|
|
17
17
|
getcanvas().postscript(file=temp_file)
|
|
18
|
-
cmd = f"
|
|
18
|
+
cmd = f"magick {temp_file} -colorspace RGB {filename}"
|
|
19
19
|
run(cmd, shell=True, check=True)
|
|
20
20
|
temp_file.unlink()
|
|
21
21
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|