main
Alexandre B A Villares 2018-12-31 16:44:54 -02:00
rodzic 1ed45487bf
commit ee9be726a0
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -10,6 +10,20 @@ Feel free to [contact me](http://contato.lugaralgum.com) regarding licenses to u
If you enjoy this, be a [patreon](https://patreon.com/arteprog) or make a donation [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HCGAKACDMVNV2)
---
![s367](s367/s367.gif)
367: [code](https://github.com/villares/sketch-a-day/tree/master/s367) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![s366](s366/s366.gif)
366: [code](https://github.com/villares/sketch-a-day/tree/master/s366) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![s365](s365/s365.gif)

Wyświetl plik

@ -26,7 +26,7 @@ def init_grid(f=None):
f = lambda i, j: choice((True, False))
# number of collums and rows -2 for default cell sized border
w = int(width // CELL_SIZE) - 2
h = int(height // CELL_SIZE) - r2
h = int(height // CELL_SIZE) - 2
for i in range(w):
for j in range(h):
# default Cell constructor has border=CELL_SIZE