Skip to content

Commit

Permalink
Update curvas.md
Browse files Browse the repository at this point in the history
  • Loading branch information
villares authored Jul 31, 2024
1 parent 938e45d commit 60f6590
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Processing-Python-py5/curvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def setup():
50, 100) # 6: vértice
end_shape()

pontos = [
# anotações
pts = [
(100, 50), # 0
(150, 150), # 1
(250, 150), # 2
Expand All @@ -59,12 +60,10 @@ def setup():
(50, 100), # 6
]
stroke_weight(1)
for i, ponto in enumerate(pontos):
x, y = ponto
for i, (x, y) in enumerate(pts):
fill(255)
circle(x, y, 5)
t="{}: {:3}, {:3}".format(i, x, y)
text(t, x+5, y-5)
text(f"{i}: {x}, {y}", x+5, y-5)
</pre>

</details>
Expand Down

0 comments on commit 60f6590

Please sign in to comment.