kopia lustrzana https://github.com/villares/sketch-a-day
main
rodzic
d6456412c6
commit
4a768b937a
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 168 KiB |
|
|
@ -0,0 +1,16 @@
|
|||
def setup():
|
||||
size(500, 500)
|
||||
background(128)
|
||||
stroke(0, 0, 100)
|
||||
region(100, 000, 400, 400)
|
||||
stroke(0, 100, 0)
|
||||
region(0, 100, 400, 400)
|
||||
|
||||
|
||||
def region(xo, yo, w, h):
|
||||
for x in range(xo, xo + w):
|
||||
for y in range(yo, yo + h):
|
||||
if ((random(w) > x - xo) ^
|
||||
(random(w) < y - yo)):
|
||||
point(x, y)
|
||||
|
||||
|
|
@ -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_09_15a](https://github.com/villares/sketch-a-day/tree/master/2021/sketch_2021_09_15a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||

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