kopia lustrzana https://github.com/villares/sketch-a-day
Merge branch 'master' of https://github.com/villares/sketch-a-day
commit
d040241f3f
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 4.2 MiB |
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
|
||||
def setup():
|
||||
size(500, 500)
|
||||
frameRate(5)
|
||||
|
||||
def draw():
|
||||
background(240)
|
||||
noFill()
|
||||
stroke(0, 64)
|
||||
f(250)
|
||||
|
||||
def f(x):
|
||||
# push()
|
||||
DRAW(x)
|
||||
if x > 1:
|
||||
f(1 * x / 4)
|
||||
f(2 * x / 4)
|
||||
f(3 * x / 4)
|
||||
# pop()
|
||||
|
||||
def DRAW(x):
|
||||
triangle(0, 0,
|
||||
x, 0,
|
||||
x, x)
|
||||
translate(x, x)
|
||||
rotate(radians(frameCount))
|
||||
|
||||
|
|
@ -24,6 +24,13 @@ Here are listed some of the tools I have been using:
|
|||
|
||||
## [2018](2018.md) | [2019](2019.md) | [2020](2020.md) | 2021
|
||||
|
||||
-
|
||||
---
|
||||
|
||||

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

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