Skip to main content

Bars generator

Project description

rectify image


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 on the top of this page is as simple as:

from rectify.image import generate, save

picture = generate(900, 30, background=(30, 30, 30), colors='pastel')
save(picture, 'bars.png')

Or from the command line:

$ rectify -x 900 -y 30 -b '(30,30,30)' -c pastel -o 'bars.png' --show

Full documentation is available at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rectify, version 2.2
Filename, size File type Python version Upload date Hashes
Filename, size rectify-2.2-py3-none-any.whl (11.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rectify-2.2.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page