Generating note banners with Ruby
I created some banner images of my own for Apple Notes and Bear this morning, like the ones you can use with the Forever Notes system. Unlike the ones you can download from the resources page, though, mine are a bit more customisable and generate a different set of mountains each time.
I quite like the end result of these.
The other nice thing about them is that the fill colour can be transparent. So in Bear, when you switch to a dark theme, the dark colour comes through the banner. It doesn’t look so great with the light themes, but I barely use them anyway.
Currently, I have two scripts, one for generating a transparent banner and one that generates a banner using a set of colours.
I plan on adding a few more over the next few months. Clouds, hills, snowflakes and skyscrapers could all be generated with random patterns and follow the same convention. I won’t be running a web server to allow others to generate these easily. Generating images consumes more energy than a typical web request, so in the meantime, you’ll need to download the scripts and generate them yourself.
Source code is available on SourceHut.