rectify is a tiny Python package whose sole purpose of life is generating randomized images with colorful bars on a single-color background. Making, displaying and saving a picture like the one in the sidebar of this page is as simple as:

from rectify.image import generate, save

picture = generate(220, 30, background=(30, 30, 30), colors='neon')
save(picture, 'picture.png')

Or from the command line:

$ rectify -x 220 -y 30 -b '(30,30,30)' -c neon -o 'picture.png'

Indices and Tables