Alexandre B A Villares 2019-11-30 23:44:50 -02:00
rodzic 79f7a1380e
commit ec4a2f62b1
3 zmienionych plików z 18 dodań i 10 usunięć

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 177 KiB

Wyświetl plik

@ -26,9 +26,6 @@ def draw():
circle(x0, y0, 10)
def curva(x1, y1, x2, y2):
"""
linha
"""
L = dist(x1, y1, x2, y2)
with pushMatrix():
translate(x1, y1)
@ -37,13 +34,6 @@ def curva(x1, y1, x2, y2):
cx = (L / 2) * offset_curva / 10.
bezier(0, 0, -cx, L * .25, +cx, L * .75, 0, L)
def keyPressed():
if key == ' ':
novos_pontos()
if key == 's':
saveFrame("####.png")
def mousePressed():
global arrastando
for i, (x0, y0) in enumerate(pontos):
@ -61,3 +51,9 @@ def mouseDragged():
def mouseWheel(e):
global offset_curva
offset_curva += e.getCount() / 5.
def keyPressed():
if key == ' ':
novos_pontos()
if key == 's':
saveFrame("####.png")

Wyświetl plik

@ -22,6 +22,18 @@ You may also support my artistic work, open teaching resources and research with
---
![sketch_191130a](2019/sketch_191130a/sketch_191130a.gif)
[sketch_191128a](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_191130a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![sketch_191129a](2019/sketch_191129a/sketch_191129a.png)
[sketch_191129a](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_191129a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
---
![sketch_191128a](2019/sketch_191128a/sketch_191128a.png)
[sketch_191128a](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_191128a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]