A simple color module to handle RGB and BGR format more easily
Project description
PyColorama
This is a simple package to handle easily various colors in either the PyGame (RGB) format or the OpenCV (BGR) format. Default mode is PyGame.
Example
Just use like that :
example for PyGame color
import pycolorama as pc
COLOR = pc.COLOR(pc.PYGAME)
print(COLOR.WHITE)
Will return : (0,0,255)
example for OpenCV color
import pycolorama as pc
COLOR = pc.COLOR(pc.OPENCV)
print(COLOR.BLUE)
Will return : (255,0,0)
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
pycolorama-0.6.tar.gz
(2.2 kB
view hashes)