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.
Source Distribution
Built Distribution
File details
Details for the file colorir-1.3.4.tar.gz
.
File metadata
- Download URL: colorir-1.3.4.tar.gz
- Upload date:
- Size: 33.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943d375d5d38a63de03c892cb9005eba330100e83302c7c9d376dc8cca37ca2c |
|
MD5 | 291eb7763bb9b4e68aceb4bc91817d4d |
|
BLAKE2b-256 | e7aec2f5154bff58ceb5828c86912888c07c601a730cbffa5027a3ab14951bb3 |
File details
Details for the file colorir-1.3.4-py3-none-any.whl
.
File metadata
- Download URL: colorir-1.3.4-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71b563185ff0329437d0435c769cbd474c56f291740b4a2d722eb4cf17beb072 |
|
MD5 | f419bd0c9dce84835c7076fd1af610ea |
|
BLAKE2b-256 | 10aef3a5a3a09bfbcbd43d30911d80e94c50ee7793a1d68447c99d6dadc80f2b |