kopia lustrzana https://github.com/villares/sketch-a-day
30 readme
rodzic
79f7a1380e
commit
ec4a2f62b1
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 177 KiB |
|
|
@ -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")
|
||||
|
|
|
|||
12
README.md
12
README.md
|
|
@ -22,6 +22,18 @@ You may also support my artistic work, open teaching resources and research with
|
|||
|
||||
---
|
||||
|
||||

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