Skip to main content

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


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)

Uploaded Source

Built Distribution

SecretColors-0.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

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