Alexandre B A Villares 2020-09-12 00:36:50 -03:00
rodzic a485e38d61
commit 4d286bba47
3 zmienionych plików z 33 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Po

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

Wyświetl plik

@ -0,0 +1,27 @@
from java.lang import System
System.setProperty("jogl.disable.openglcore", "false")
V = PVector
t = translate
w = 512
m = 256
l = [V()]
def setup():
size(w, w, P3D)
def draw():
u = l[-1]
f = millis() / 1e3
N = lambda o:int(noise(f+o) * 255)
clear()
t(*[m] * 3)
rotateX(f)
n = int(noise(f) * 6)
[(t(*b), fill(N(i),N(i+100),N(200)), box(5), t(*b * -1), b.sub(u / 9))
for i,b in enumerate(l)]
a = -5 + (10 * (n % 2))
l[:] += [u + V(a * (n == 3), a * (n == 2), a * (n == 1))]
# V=PVector;t=translate;w=512;m=256;l=[V()]
# def setup():size(w,w,P3D)
# def draw():u=l[-1];f=millis()/1e3;clear();t(*[m]*3);rotateX(f);[(t(*b),fill(b[0]%m,b[1]%m,b[2]%m),box(5),t(*b*-1),b.sub(u/9))for b in l];n=int(noise(f)*6);a=-5+(10*(n%2));l[:]+=[u+V(a*(n==3),a*(n==2),a*(n==1))]

Wyświetl plik

@ -19,6 +19,12 @@
--- ---
![sketch_2020_09_11a](2020/sketch_2020_09_11a/sketch_2020_09_11a.gif)
[sketch_2020_09_11a](https://github.com/villares/sketch-a-day/tree/master/2020/sketch_2020_09_11a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![sketch_2020_09_10a](2020/sketch_2020_09_10a/sketch_2020_09_10a.gif) ![sketch_2020_09_10a](2020/sketch_2020_09_10a/sketch_2020_09_10a.gif)
[sketch_2020_09_10a](https://github.com/villares/sketch-a-day/tree/master/2020/sketch_2020_09_10a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)] [sketch_2020_09_10a](https://github.com/villares/sketch-a-day/tree/master/2020/sketch_2020_09_10a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]