kopia lustrzana https://github.com/villares/sketch-a-day
106 gif
rodzic
70ce900561
commit
4de0c663e7
18
README.md
18
README.md
|
|
@ -8,6 +8,24 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w
|
|||
|
||||
----
|
||||
|
||||

|
||||
|
||||
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...
|
||||
```
|
||||
|
||||
----
|
||||
|
||||

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