Tom Larrow on Nostr: Home sick, watching sick kids. Did some #CreativeCoding in #py5 to keep myself busy ...
Home sick, watching sick kids. Did some #CreativeCoding in #py5 to keep myself busy
Tried to make a simple as "Can I draw some triangles with rounded corners" and it was more complex than I imagined. Each one was drawn on a separate graphics layer and merged back to the main canvas with an alpha modifying tint, in order to avoid the stroke and fill from overlapping. Add in some boundary checking and cold medicine fog, and this took a lot longer than expected
Code: https://codeberg.org/TomLarrow/creative-coding-experiments/src/branch/main/x_0100/x_0116
Tried to make a simple as "Can I draw some triangles with rounded corners" and it was more complex than I imagined. Each one was drawn on a separate graphics layer and merged back to the main canvas with an alpha modifying tint, in order to avoid the stroke and fill from overlapping. Add in some boundary checking and cold medicine fog, and this took a lot longer than expected
Code: https://codeberg.org/TomLarrow/creative-coding-experiments/src/branch/main/x_0100/x_0116



