Alexandre B A Villares 2018-04-16 22:47:37 -03:00
rodzic 70ce900561
commit 4de0c663e7
2 zmienionych plików z 20 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,24 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w
----
![s106](s106/s106.gif)
106: [code](https://github.com/villares/sketch-a-day/tree/master/s106) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
Lazy triangles
```python
def equilateral(x, y, r):
with pushMatrix():
translate(x, y)
triangle(-0.866 * r, -0.5 * r,
0.866 * r, -0.5 * r,
0.000 * r, 1.0 * r)
# I know... 0 * r and 1 * r...
```
----
![s105](s105/s105.gif)
105: [code](https://github.com/villares/sketch-a-day/tree/master/s105) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]

Wyświetl plik

@ -99,4 +99,5 @@ def equilateral(x, y, r):
translate(x, y)
triangle(-0.866 * r, -0.5 * r,
0.866 * r, -0.5 * r,
0.000 * r, 1.0 * r)
#0.000 * r, 1.0 * r)
0, r)