Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Biased random colors

Project description

Biased Random Colors

Description

The module have a simple function get to get some random colors, represented by (R, G, B), in the range between 0 and 1.

How to use

import brcs
more_red    = brcs.get(color_number, bias=(1.0, 0.5, 0.5))
more_purple = brcs.get(color_number, bias=(1.0, 0.5, 1.0))
bright_red  = brcs.get(color_number, bias=(1.0, 0.5, 0.5), lightness=(0.6, 1.0))

random_colormap = brcs.get(color_number)

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 brcs, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size brcs-0.2.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page