Make a MacOS Color palette from Python
Project description
Usage
import colorpalettegenerator as cg
# Create the palette, named "MyPythonPalette"
mypalette = cg.Palette("MyPythonPalette")
# Add a color using a key e.g. "White" and color described by (r, g, b, a)
mypalette.add_color((1,1,1,1), "White")
mypalette.add_color((1,0,0,1), "Red")
mypalette.add_color((0,1,0,1), "Green")
mypalette.add_color((0,0,1,1), "Blue")
mypalette.add_color((0,0,1,0.5), "Translucent blue")
# Save it to the default location. This will make it visible in the MacOS color palette.
mypalette.save()
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
Built Distribution
Close
Hashes for colorpaletteconverter-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f3b48b2893e6caf01aee14fd239a475099bf7fa0a891ed26231580c894e561 |
|
MD5 | 5e7fc002ec97612d14206adb4781cae1 |
|
BLAKE2b-256 | 8d2e2976ab09c332e9ef5fb68de82dea2d4368523b72b6695ba8dc6f10a6cfdb |
Close
Hashes for colorpaletteconverter-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2287e95a9e862404b40390afc6b995031cf4c63155788b9b6dbb33d55501012a |
|
MD5 | 5da21bbaaf2bc651c3ab9569eb118ed9 |
|
BLAKE2b-256 | 55e90958eee003f899b186634ef0fc3081367c4b65a05235c9b602656a1bed71 |