kopia lustrzana https://github.com/villares/sketch-a-day
11_10a
rodzic
fc8bc0964e
commit
ee15cded13
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 254 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 271 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 272 KiB |
|
@ -47,7 +47,7 @@ def keyPressed():
|
|||
nbs[:] = NBS # refresh, full neighbourhood
|
||||
for _ in range(8): # 8 times 5 iteration steps
|
||||
nbs[:] = sample(NBS, max(2, len(nbs) - 1))
|
||||
for i in range(5):
|
||||
for _ in range(5):
|
||||
grow()
|
||||
elif key == ENTER:
|
||||
setup_seed()
|
||||
|
@ -57,9 +57,8 @@ def keyPressed():
|
|||
|
||||
def grow():
|
||||
nks = nodes.keys()
|
||||
# nks.sort() # hmmm. not that nice
|
||||
shuffle(nks)
|
||||
for x, y in nodes.keys():
|
||||
for x, y in nks:
|
||||
for nx, ny in nbs:
|
||||
xnx, yny = x + nx, y + ny
|
||||
visible = (abs(xnx * step) < width / 2 - step * 5 and
|
||||
|
|
|
@ -26,6 +26,12 @@ Here are listed some of the tools I have been using:
|
|||
## [2018](2018.md) | [2019](2019.md) | [2020](2020.md) | 2021
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[sketch_2021_11_10a](https://github.com/villares/sketch-a-day/tree/master/2021/sketch_2021_11_10a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
Ładowanie…
Reference in New Issue