Skip to content

Commit

Permalink
10
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jan 11, 2025
1 parent 5ec5704 commit 18c6c2f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Binary file added 2025/sketch_2025_01_10/sketch_2025_01_10.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 2025/sketch_2025_01_10/sketch_2025_01_10.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import py5

from py5 import TAU

u = int(TAU / TAU)
d = u + u
t = u + u + u
tt = int(TAU * TAU * TAU)

def setup():
global pts
py5.size(tt * t, tt * t, py5.P3D)
pts = py5.create_shape()
with pts.begin_shape(py5.POINTS):
for _ in range(py5.height):
v = py5.Py5Vector.random(t)
v.mag = py5.random(py5.height)
pts.stroke(py5.random_choice(
('red', 'blue','green')))
pts.vertex(*v)
py5.background('black')
py5.translate(py5.width / d, py5.height / d, -py5.height / d)
#py5.rotate_x(py5.mouse_y / 10)
for _ in range(tt):
py5.rotate_y(TAU / tt)
py5.shape(pts)
py5.save_frame('out.png')

py5.run_sketch()
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ If you appreciate what I have been doing, you may also support my artistic work,
2025 \| [<b>2024</b>](2024.md) \| [<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_2025_01_10

![sketch_2025_01_10](https://raw.githubusercontent.com/villares/sketch-a-day/main/2025/sketch_2025_01_10//home/villares/GitHub/sketch-a-day/2025/sketch_2025_01_10/sketch_2025_01_10.png)

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

#genuary2025 genuary10 #TAU (based on genuary 8)

---

### sketch_2025_01_09
Expand Down

0 comments on commit 18c6c2f

Please sign in to comment.