Alexandre B A Villares 2021-03-14 20:21:11 -03:00
rodzic f1572fcb7b
commit 10e7c49cfc
3 zmienionych plików z 29 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Po

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

Wyświetl plik

@ -0,0 +1,23 @@
from __future__ import division
def setup():
size(600, 600);
background(240, 240, 240)
noFill()
s = 20 # must be int
stroke(0, 100, 0)
for x in range(s // 2, width, s):
for y in range(s // 2, height, s):
circle(x, y, s)
# point(x, y)
stroke(0, 0, 100)
s = 22 # could be float
cols, rows = int(width / s), int(height / s)
for ix in range(cols):
x = s / 2 + ix * s
for iy in range(rows):
y = s / 2 + iy * s
circle(x, y, s)
# point(x, y)

Wyświetl plik

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