Skip to content

Commit

Permalink
Update sketch_2025_01_12.py
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jan 13, 2025
1 parent dae5a99 commit 2eb2896
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 2025/sketch_2025_01_12/sketch_2025_01_12.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

margem = 10


def setup():
py5.size(800, 800)
start_polygons()

def start_polygons(n=7):
global poligonos
HW = py5.width - 2 * margem # half width (meia largura)
W = py5.width - 2 * margem
poligonos = [
((0, 0), (HW, 0), (HW, HW), (0, HW)),
((0, 0), (W, 0), (W, W), (0, W)),
]
for _ in range(n):
dividir_poligonos()
Expand Down

0 comments on commit 2eb2896

Please sign in to comment.