Skip to main content

A color palette module

Project description

Color Palette

PyPI version PyPI pyversions MIT LICENSE Stars Issues Forks

Python Package for easy coloring

Installation

github:

python -m pip install git+https://github.com/SnowballSH/color_palette.git@master

Pip:

pip install color-palette

Usage

from color_palette import Color, mix, presets
my_rgb = Color((255, 0, 0))  # You can either call on rbg
print(my_rgb)  # You can print the different values with both hex and rgb
my_hex = rgb.switch("hex")  # You can switch from rgb to hex using this or the .to_rbg and .to_hex commands
cyan = presets.cyan  # get preset colors to code quicker
mixed = mix([my_rgb, cyan])  # You can even mix them together!
yellow = presets.yellow[1.6]  # You can get shades and tints for colors by using [amount] after color -- 0 is the original color
print(yellow)  # In this case, 'yellow' is a light yellow color with 1.6 times lighter than normal.

Contribute

Found bugs? Want to suggest something? Create an issue here.
Or you can fork this project and create a pull request.

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

color_palette-0.2.6.1.tar.gz (11.2 kB view details)

Uploaded Source

File details

Details for the file color_palette-0.2.6.1.tar.gz.

File metadata

  • Download URL: color_palette-0.2.6.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for color_palette-0.2.6.1.tar.gz
Algorithm Hash digest
SHA256 6ab14cae027eaa6b441d507b535b9e8825329e6e334156e1c0bc1c2b3c20ca72
MD5 ac8a1a3d84f262a0c4bc68a826e73c9d
BLAKE2b-256 d2c87a45b52fa59f830406f6446684a999a7d3578227a5ff74f3c9eb76a755d9

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