Mezcal

Library for generating a set of color schemes from a provided color.


Keywords
color, colour, scheme, complimentary, analogous, split-complimentary, triads, tetrads, monochromatic, theme, selection
License
SSPL-1.0
Install
pip install Mezcal==1.0.4

Documentation

Mezcal Bottle

Description:

Mezcal is a distilled from the awesome Agave color scheme generator application (http://home.gna.org/colorscheme/).

Depends on: - numpy >= 1.12.1

# With PyQt5
pip install PyQt5

# Install
pip install Mezcal

Usage Example:

from Mezcal.Barrel import Bottle

glass = Bottle()

# Set rgb, hsv, hex on Bottle objects.
glass.rgb = ( 100, 200, 55 )


# Get the corresponding color schemes.
print( "RGB color scheme:")
print( glass.rgb_scheme )

print( "HSV color scheme")
print( glass.hsv_scheme )

print( "Hex color scheme")
print( glass.hex_scheme )

glass.hsv = ( 360, 100, 50 )
print( glass.analogous[0].hex )

# Define hex, rgb, hsv on class creation.
glass = Bottle( hex="#0066cc" )
print( glass.rgb_scheme )

Mezcal Widget

Mezcal PyQt5 Visualization

#!/bin/bash

# Requires PyQt5 to be installed.
python widget/SampleWidget.py