kopia lustrzana https://github.com/villares/sketch-a-day
main
rodzic
f1572fcb7b
commit
10e7c49cfc
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 178 KiB |
|
|
@ -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)
|
||||
|
|
@ -25,6 +25,12 @@ Here are listed some of the tools I have been using:
|
|||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[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](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)]
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue