Skip to content

Commit

Permalink
5gif
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jan 6, 2025
1 parent f9b2c5d commit 8f2ecdb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file added 2025/sketch_2025_01_05/out.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2025/sketch_2025_01_05/sketch_2025_01_05.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion 2025/sketch_2025_01_05/sketch_2025_01_05.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)]


---
Expand Down

0 comments on commit 8f2ecdb

Please sign in to comment.