What is Nostr?
py5coding /
npub1snh…2xgv
2024-01-05 21:59:14

py5coding on Nostr: The latest version of #py5 works with #shapely objects, implicitly converting them to ...

The latest version of #py5 works with #shapely objects, implicitly converting them to Py5Shape objects & drawing them to the screen:

from shapely import Polygon

size(999,999)
stroke_weight(19)
p=Polygon([[9,9], [9,990], [990,990], [990,9]])
for _ in range(8):
shape(p:=p.buffer(-50, single_sided=True))
#genuary #genuary5

Author Public Key
npub1snhr369rl5q977dd2n8rnxy95zsyj0engh70ehvjx5uefvjmezds852xgv