24b & c static images

main
Alexandre B A Villares 2021-01-24 17:03:03 -03:00
rodzic ef6f5171b0
commit 5c981df9d8
5 zmienionych plików z 67 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 50 KiB

Wyświetl plik

@ -0,0 +1,28 @@
# w,q=512,128
# p=[PVector.random3D()*q for _ in range(w*2)]
# def setup():size(w,w,P3D)#つぶやきProcessing
# def draw():#Python
# background(q);strokeWeight(5);translate(w/2,w/2,q);scale(-1)
# for x,y,z in p:push();c=q+x,q+y,q+z;stroke(*c);rotateY(frameCount/(sum(c)/3));point(x,y,z);pop()
points = [] #つぶやきProcessing #Python
def setup():
size(512, 512, P3D)
points[:] = [PVector.random3D() * 128
for _ in range(1024)]
def draw():
background(128)
strokeWeight(5)
translate(width / 2, height / 2, 128)
scale(-1)
for x, y, z in points:
pushMatrix()
c = color(128 + x, 128 + y, 128 + z)
stroke(c)
rotateY(frameCount / brightness(c))
point(x, y, z)
popMatrix()

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 174 KiB

Wyświetl plik

@ -0,0 +1,27 @@
#genuary prompt: 500 lines
points = []
def setup():
size(512, 512, P3D)
points.append(PVector.random3D() * 128)
while len(points) < 500:
p = PVector.random3D() * 128
if 127 < PVector.dist(p, points[-1]) < 128:
points.append(p)
def draw():
background(0)
strokeWeight(2)
translate(width / 2, height / 2, 128)
scale(-1)
rotateY(frameCount / 100.0)
for i, (xa, ya, za) in enumerate(points):
xb, yb, zb = points[i - 1]
stroke(128 + xa, 128 + ya, 128 + za)
line(xa, ya, za, xb, yb, zb)
print(int(degrees(frameCount / 100.0)) % 360)

Wyświetl plik

@ -26,6 +26,18 @@ Here are listed some of the tools I have been using:
---
![sketch_2021_01_24c](2021/sketch_2021_01_24c/sketch_2021_01_24c.png)
[sketch_2021_01_24c](https://github.com/villares/sketch-a-day/tree/master/2021/sketch_2021_01_24c) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![sketch_2021_01_24b_sphere](2021/sketch_2021_01_24b_sphere/sketch_2021_01_24b_sphere.png)
[sketch_2021_01_24b_sphere](https://github.com/villares/sketch-a-day/tree/master/2021/sketch_2021_01_24b_sphere) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![sketch_2021_01_23a](2021/sketch_2021_01_23a/sketch_2021_01_23a.png)
[sketch_2021_01_23a](https://github.com/villares/sketch-a-day/tree/master/2021/sketch_2021_01_23a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]