Skip to content

kirbyyourmom/ColorPalette

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Color module for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%