55 minutes ago · 7 min read1478 words · Tech · hide

I am releasing Weekful, an app that shows your life in weeks. Its mascot is a pixel-art tree that has grown exactly as far as your life has: a sprout when you are a kid, an old crooked tree at the end. In this post I will show you how the tree grows. There is more about the app itself at the end. Three drawings I am no pixel artist, so I wanted to draw as little as possible. The whole tree is three drawings on a 19×19 grid: a sprout, an adult tree and an old one. They live right in the code as ASCII art, W for the wood and g for the leaves: static let sprout = PixelGrid(art: """ ... .......g........... ........Wg......... .......gW.......... .........Wg........ ........W.......... """) Everything between the drawings has to be computed. My first attempt was a simple cross-fade and it looked terrible, more like a slideshow than a tree. A tree does not fade in as a whole. It grows up from the ground, gets thicker, and the leaves follow the branches. The idea The trick is to decide, for…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town