A small package for fantastic color palette
Project description
Secret Colors
Library generated for better color palettes. It uses IBM color palette as well as Google material design color palette.
Simple use will be
from SecretColors.palette import IBMPalette
palette = IBMPalette()
palette.red() # Red color from IBM palette
# Most of the color have 10 grades 1,10,20...90
palette.red(grade=1) # Lighter Red Color
palette.red(grade=90) # Darker Red Color
palette.red(no_of_colors=2) # Two grades of Reds
palette.random # Random color from the palette
palette.uniform_colors(10) # 10 colors from uniform gradient
palette.uniform_colors_between(10, '#648fff', '#00aa5e') # 10 colors from
uniform gradient between #648fff and #00aa5e
Plus it has few standard conversion methods
from SecretColors.palette import *
rgb_to_hex((0, 170, 94)) # Converts RGB to Hex
rgb_to_hsv((0, 170, 94)) # Converts RGB to HSV
hex_to_rgb('#00aa5e') # Converts Hex to RGB
color_in_between('#00aa5e', '#95d13c') # Color beteen two in RGB space
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SecretColors-0.0.1.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for SecretColors-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c294c097c5dd3f55cfb67bfed8b95107a77d13d91da12213f5fca49d05a77208 |
|
MD5 | 476676944e99f97c06cc2c3c526f5a72 |
|
BLAKE2b-256 | 975a4d955cf3012820ebdb7330f47e887436490bde5414b4c790f0f838f1f692 |