Skip to content

Commit

Permalink
27
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Nov 28, 2024
1 parent 6ab767b commit 4c8f9ba
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
Binary file added 2024/sketch_2024_11_27/manjaro.png
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 2024/sketch_2024_11_27/sketch_2024_11_27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions 2024/sketch_2024_11_27/sketch_2024_11_27.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

def setup():
global img_c
size(446, 454)
img_a = load_image('xfce.png')
img_b = load_image('manjaro.png')
img_c = create_graphics(width, height)
H = 10
img_c.begin_draw()
cols = width // H
rows = height // H
for i in range(cols):
x = i * H
for j in range(rows):
y = j * H
if (i + j) % 2:
img = img_a.get_pixels(x, y, H, H)
else:
img = img_b.get_pixels(x, y, H, H)
image(img, x, y)
img_c.end_draw()

def draw():
image(img_c, 0, 0)

def key_pressed():
save_frame('out.png')


Binary file added 2024/sketch_2024_11_27/xfce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Here are listed some of the tools I have been using more recently:
2024 \| [<b>2023</b>](2023.md) \| [<b>2022</b>](2022.md) \| [<b>2021</b>](2021.md) \| [<b>2020</b>](2020.md) \| [<b>2019</b>](2019.md) \| [<b>2018</b>](2018.md)


---

### sketch_2024_11_27

![sketch_2024_11_27](https://raw.githubusercontent.com/villares/sketch-a-day/main/2024/sketch_2024_11_27/sketch_2024_11_27.png)

[sketch_2024_11_27](https://github.com/villares/sketch-a-day/tree/main/2024/sketch_2024_11_27) [[py5](https://py5coding.org/)]



---

### sketch_2024_11_26
Expand Down

0 comments on commit 4c8f9ba

Please sign in to comment.