Skip to main content

Bars generator

Project description

rectify image

rectify

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')

picture.show()
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 jenx.gitlab.io/rectify.

Project details


Download files

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

Source Distribution

rectify-2.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

rectify-2.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file rectify-2.2.tar.gz.

File metadata

  • Download URL: rectify-2.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for rectify-2.2.tar.gz
Algorithm Hash digest
SHA256 0cd9720c0ffcfcb4bb7853722808a65c7dfec566cfe0378c785a68a0087f7e6e
MD5 8322a9b7da21feda9f8617ecf3415525
BLAKE2b-256 e060398adffedc6cb9836487327411118af609b9dd943e349ada146c141a51a6

See more details on using hashes here.

File details

Details for the file rectify-2.2-py3-none-any.whl.

File metadata

  • Download URL: rectify-2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for rectify-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e20956da2035a3af3f815b09efbd2e888f5ed175021b7b56ad53f062dc450774
MD5 6e140aa77da9eb5f79f65e5d7434ec8b
BLAKE2b-256 c3d4fb6e80a6ef9420aa95c5f584322a2ea5141e983a56ff665ff73020e67b5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page