fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Jonathan Hartley

Inspired by a woodland hike under the first blue skies we've seen this year, I got home and showed my kiddo how to draw an tree with recursive functions. The shape is very sensitive to parameters like the factors by which each branch is thinner and shorter than its parents, but we tuned them until our results looked like the trees we'd seen in the afternoon.

Pushed to github.com/tartley/tree-art.

I show an image there which squeezes out a couple of extra iterations (-i18) on the branches, giving them a less sparse, fluffier appearance towards the ends, this generates a 100MB SVG and beyond that, my SVG viewing and conversion tools start to barf.

Python generates SVG tree using recursive functions - tartley/tree-art
GitHubGitHub - tartley/tree-art: Python generates SVG tree using recursive functionsPython generates SVG tree using recursive functions - tartley/tree-art