Skip to main content

happybackgrounds

Create simple wallpapers and backgrounds based on Font Awesome icons. For @katef

This is a script for generating simple wallpapers and backgrounds by splattering icons from Font Awesome over a solid block of colour. Some examples:

A grey background with dark grey crescents.A dark purple background with lighter purple five-pointed stars moving across the sky.
A light-blue background with some large turquoise-ish snowflakes.A green background with lots of small, green seedlings. Each seedling has two leaves.
A Mars-type reddish orange background, with rockets in varying levels of darkness set against the background.A yellow background with a light yellow smiling face at a jaunty angle.

Usage

You need Python 3 installed. Clone the repo, and run the “happybackgrounds” script to see how it can be used:

; git clone https://github.com/alexwlchan/happybackgrounds.git
; cd happybackgrounds
; python3 happybackgrounds.py --help

You can choose:

The script run.sh has the invocations that generated the examples in the table above.

The script returns the path to the generated SVG file, or you can specify the output file with the --out_path flag. For example:

; python3 happybackgrounds.py --background="#d6fcff" --icon_name="snowflake"
/var/folders/_c/h0g4c9_n6rg8d2v509hztzdc0000gn/T/tmpfo3v6nqr.svg

You can convert these SVGs to PNGs using ImageMagick (as was done for the table above).

Known limitations

Right now I run the script repeatedly until I get a “nice-looking” result; the success rate is nowhere near good enough to drop this into an automated process.

License

CC0.