diff --git a/2025/sketch_2025_01_05/out.gif b/2025/sketch_2025_01_05/out.gif new file mode 100644 index 00000000..227a56a7 Binary files /dev/null and b/2025/sketch_2025_01_05/out.gif differ diff --git a/2025/sketch_2025_01_05/sketch_2025_01_05.gif b/2025/sketch_2025_01_05/sketch_2025_01_05.gif new file mode 100644 index 00000000..62839e03 Binary files /dev/null and b/2025/sketch_2025_01_05/sketch_2025_01_05.gif differ diff --git a/2025/sketch_2025_01_05/sketch_2025_01_05.py b/2025/sketch_2025_01_05/sketch_2025_01_05.py index c7eb1032..3bdfc4b7 100644 --- a/2025/sketch_2025_01_05/sketch_2025_01_05.py +++ b/2025/sketch_2025_01_05/sketch_2025_01_05.py @@ -24,7 +24,7 @@ def setup(): tri = tri.difference(hole) py5.no_stroke() shp = py5.convert_cached_shape(tri) - animated_gif('out.gif', duration=0.066, frame_numbers=range(1, 361, 4)) +# animated_gif('out.gif', duration=0.066, frame_numbers=range(1, 361, 4)) def draw(): @@ -43,6 +43,9 @@ def draw(): py5.rotate_x(py5.random_choice(ra) + a) py5.rotate_y(py5.random_choice(ra) + a) py5.shape(shp, 0, 0) + if f == 1: + py5.save('static.gif') + def key_pressed(): py5.save(__file__[:-2] + 'png') diff --git a/docs/README.md b/docs/README.md index 110903fa..c02da3f1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -27,8 +27,9 @@ If you appreciate what I have been doing, you may also support my artistic work, ![sketch_2025_01_05](https://raw.githubusercontent.com/villares/sketch-a-day/main/2025/sketch_2025_01_05/sketch_2025_01_05.gif) -[sketch_2025_01_05](https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_01_05) [[py5](https://py5coding.org/)] +[animation](https://raw.githubusercontent.com/villares/sketch-a-day/main/2025/sketch_2025_01_05/out.gif) +[sketch_2025_01_05](https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_01_05) [[py5](https://py5coding.org/)] ---