A python package for easy management of colors and palettes.
Project description
What is colorir?
colorir is a package developed to unify your workflow with colors across different projects.
With colorir you can:
Keep a unified selection of colors you like and use them in your different projects;
Use these colors directly as input for other graphical or web frameworks;
Easily convert between different color systems and formats;
Create gradients between colors and sample from them;
Easily visualize swatches of colors in the terminal;
And much more!
colorir was designed to be your best friend when dealing with colors so that you won’t ever need to write this kind of code again:
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
CSS_ALICEBLUE = (240, 248, 255)
COOL_PURPLE = (11, 0, 51)
MY_FAVORITE_GREEN = (113, 180, 141)
TOP_NOTCH_RED = (131, 34, 50)
# ... unnecessarily long and ugly list of colors
Getting Started
Getting started with colorir can be as simple as:
import tkinter as tk
from colorir import *
colors = Palette.load() # Load colors
win = tk.Tk()
win.configure(bg=colors.magicmint) # Set background to 'magicmint' color
win.mainloop()
For more information (including use-cases and examples), see colorir’s documentation here.
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.