drawzero 0.5.4__tar.gz → 0.6.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.
- {drawzero-0.5.4/src/drawzero.egg-info → drawzero-0.6.0}/PKG-INFO +3 -3
- drawzero-0.6.0/docs/imgs/anim01.gif +0 -0
- drawzero-0.6.0/docs/imgs/grad01.png +0 -0
- drawzero-0.6.0/docs/imgs/grad02.png +0 -0
- drawzero-0.6.0/docs/imgs/grad03.png +0 -0
- drawzero-0.6.0/docs/imgs/prim01.png +0 -0
- drawzero-0.6.0/docs/imgs/prim02.png +0 -0
- drawzero-0.6.0/docs/imgs/prim03.png +0 -0
- drawzero-0.6.0/docs/imgs/prim04.png +0 -0
- drawzero-0.6.0/docs/imgs/prim05.png +0 -0
- drawzero-0.6.0/docs/imgs/prim06.png +0 -0
- drawzero-0.6.0/docs/imgs/prim07.png +0 -0
- drawzero-0.6.0/docs/imgs/prim08.png +0 -0
- drawzero-0.6.0/docs/imgs/prim09.png +0 -0
- drawzero-0.6.0/docs/imgs/prim10.png +0 -0
- drawzero-0.6.0/docs/imgs/prim11.png +0 -0
- drawzero-0.6.0/docs/imgs/prim12.png +0 -0
- drawzero-0.6.0/docs/imgs/prim13.png +0 -0
- drawzero-0.6.0/docs/imgs/prim14.png +0 -0
- drawzero-0.6.0/docs/imgs/prim15.png +0 -0
- drawzero-0.6.0/docs/imgs/prim16.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/pyproject.toml +3 -3
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/16_keyboard_and_mouse.py +3 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/renderer.py +3 -3
- {drawzero-0.5.4 → drawzero-0.6.0/src/drawzero.egg-info}/PKG-INFO +3 -3
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero.egg-info/SOURCES.txt +20 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero.egg-info/requires.txt +1 -2
- {drawzero-0.5.4 → drawzero-0.6.0}/LICENSE +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/MANIFEST.in +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/README.md +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/hello_world.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_00.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_01.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_02.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_03.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_04.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_05.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_06.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_11.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_12.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/imgs/ex_13.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/keyboard_and_mouse_events.gif +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/planet_animation.gif +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/docs/transparent.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/setup.cfg +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/__about__.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/__init__.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/__main__.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/00_hello_world.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/01_grid_and_coordinates.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/02_loops_and_rgb_colors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/03_simple_objects.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/04_loops_sin_plot.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/05_points.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/06_turtle_style.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/07_animation_circles.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/08_animation_traffic_light.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/09_animation_rectangles.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/10_animation_planets.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/11_transparency_and_line_width.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/12_images.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/13_gradients.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/14_animation_close_vertex.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/15_animation_firework.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/17_mouse_tube.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/18_game_stars.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/19_game_colors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/20_game_racing.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/99_errors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/__init__.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/examples/cat.png +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/__init__.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/colors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/converters.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/copy_examples.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/draw.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/errors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/gradient.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/i18n.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/key_flags.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/pt.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/renderer_ejudge.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero/utils/screen_size.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero.egg-info/dependency_links.txt +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/src/drawzero.egg-info/top_level.txt +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_converters.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_copy_examples.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_errors.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_examples_gui_mode.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_examples_text_mode.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_gradient.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_i18n.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_pt.py +0 -0
- {drawzero-0.5.4 → drawzero-0.6.0}/tests/test_renderer_ejudge.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: drawzero
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A zero-boilerplate canvas drawing framework for Python 3, based on Pygame.
|
|
5
5
|
Author-email: Sergey Shashkov <sh57@yandex.ru>
|
|
6
6
|
License: MIT
|
|
@@ -23,12 +23,12 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
28
|
Requires-Python: >=3.8
|
|
28
29
|
Description-Content-Type: text/markdown
|
|
29
30
|
License-File: LICENSE
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist: pygame>=2.0.1
|
|
31
|
+
Requires-Dist: pygame-ce>=2.0.1
|
|
32
32
|
Provides-Extra: dev
|
|
33
33
|
Requires-Dist: setuptools; extra == "dev"
|
|
34
34
|
Requires-Dist: build; extra == "dev"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "drawzero"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.6.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Sergey Shashkov", email="sh57@yandex.ru" },
|
|
10
10
|
]
|
|
@@ -30,11 +30,11 @@ classifiers = [
|
|
|
30
30
|
"Programming Language :: Python :: 3.11",
|
|
31
31
|
"Programming Language :: Python :: 3.12",
|
|
32
32
|
"Programming Language :: Python :: 3.13",
|
|
33
|
+
"Programming Language :: Python :: 3.14",
|
|
33
34
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
34
35
|
]
|
|
35
36
|
dependencies = [
|
|
36
|
-
"
|
|
37
|
-
"pygame>=2.0.1",
|
|
37
|
+
"pygame-ce>=2.0.1",
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
[project.urls]
|
|
@@ -255,6 +255,7 @@ def _resize(nw: int, nh: int):
|
|
|
255
255
|
_surface = pygame.display.set_mode((surface_size, surface_size), pygame.locals.RESIZABLE)
|
|
256
256
|
_surface.blit(scaled, (0, 0))
|
|
257
257
|
_saved_surface = _surface.copy()
|
|
258
|
+
_display_update()
|
|
258
259
|
|
|
259
260
|
|
|
260
261
|
def _display_update():
|
|
@@ -337,10 +338,9 @@ def draw_set_line_width(w):
|
|
|
337
338
|
|
|
338
339
|
|
|
339
340
|
def _draw_go():
|
|
340
|
-
_display_update()
|
|
341
341
|
while True:
|
|
342
|
-
#
|
|
343
|
-
draw_tick(
|
|
342
|
+
# Keep the window responsive and ensure the last frame is flushed.
|
|
343
|
+
draw_tick()
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
def draw_quit():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: drawzero
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A zero-boilerplate canvas drawing framework for Python 3, based on Pygame.
|
|
5
5
|
Author-email: Sergey Shashkov <sh57@yandex.ru>
|
|
6
6
|
License: MIT
|
|
@@ -23,12 +23,12 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
28
|
Requires-Python: >=3.8
|
|
28
29
|
Description-Content-Type: text/markdown
|
|
29
30
|
License-File: LICENSE
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist: pygame>=2.0.1
|
|
31
|
+
Requires-Dist: pygame-ce>=2.0.1
|
|
32
32
|
Provides-Extra: dev
|
|
33
33
|
Requires-Dist: setuptools; extra == "dev"
|
|
34
34
|
Requires-Dist: build; extra == "dev"
|
|
@@ -6,6 +6,7 @@ docs/hello_world.png
|
|
|
6
6
|
docs/keyboard_and_mouse_events.gif
|
|
7
7
|
docs/planet_animation.gif
|
|
8
8
|
docs/transparent.png
|
|
9
|
+
docs/imgs/anim01.gif
|
|
9
10
|
docs/imgs/ex_00.png
|
|
10
11
|
docs/imgs/ex_01.png
|
|
11
12
|
docs/imgs/ex_02.png
|
|
@@ -16,6 +17,25 @@ docs/imgs/ex_06.png
|
|
|
16
17
|
docs/imgs/ex_11.png
|
|
17
18
|
docs/imgs/ex_12.png
|
|
18
19
|
docs/imgs/ex_13.png
|
|
20
|
+
docs/imgs/grad01.png
|
|
21
|
+
docs/imgs/grad02.png
|
|
22
|
+
docs/imgs/grad03.png
|
|
23
|
+
docs/imgs/prim01.png
|
|
24
|
+
docs/imgs/prim02.png
|
|
25
|
+
docs/imgs/prim03.png
|
|
26
|
+
docs/imgs/prim04.png
|
|
27
|
+
docs/imgs/prim05.png
|
|
28
|
+
docs/imgs/prim06.png
|
|
29
|
+
docs/imgs/prim07.png
|
|
30
|
+
docs/imgs/prim08.png
|
|
31
|
+
docs/imgs/prim09.png
|
|
32
|
+
docs/imgs/prim10.png
|
|
33
|
+
docs/imgs/prim11.png
|
|
34
|
+
docs/imgs/prim12.png
|
|
35
|
+
docs/imgs/prim13.png
|
|
36
|
+
docs/imgs/prim14.png
|
|
37
|
+
docs/imgs/prim15.png
|
|
38
|
+
docs/imgs/prim16.png
|
|
19
39
|
src/drawzero/__about__.py
|
|
20
40
|
src/drawzero/__init__.py
|
|
21
41
|
src/drawzero/__main__.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|