Skip to content

Commit

Permalink
8
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jan 9, 2025
1 parent d9b367a commit 5862dbb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Binary file added 2025/sketch_2025_01_08/sketch_2025_01_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions 2025/sketch_2025_01_08/sketch_2025_01_08.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import py5

def setup():
global pts
py5.size(1000, 1000, py5.P3D)
py5.background(0)
py5.stroke(255)

pts = py5.create_shape()
with pts.begin_shape(py5.POINTS):
for _ in range(4 * 1000):
v = py5.Py5Vector.random(3)
v.mag = py5.random(650)
pts.vertex(*v)

def draw():
py5.background(0)
py5.translate(500, 500, -500)
#py5.rotate_x(py5.mouse_y / 10)
for _ in range(250):
py5.rotate_y(py5.TAU / 250)
py5.shape(pts)

def key_pressed():
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_08

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

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

4000 white points randomly selected from the volume of a sphere, rotated over the Y axis and redrawn 250 times. #genuary2025 #genuary8

---

### sketch_2025_01_07
Expand Down

0 comments on commit 5862dbb

Please sign in to comment.