ColorpaletteConverter
Export colorpalettes in Python to the MacOS color helper.
Install
pip install colorpaletteconverter
Note: MacOS only
Usage
import colorpaletteconverter as cv
mypalette = cv.Palette("MyPythonPalette")
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")
mypalette.save()
mypalette.save("mypalette.clr")
More examples in the tutorial notebook.
Use cases
This package helps to convert color palettes from for example Matplotlib or Seaborn, or your custom generated color palettes to the MacOS Color helper.
The colors can be used in application like Apple Pages, Apple Keynote, Apple Numbers, Apple Final Cut Pro X, Microsoft Word, Microsoft Powerpoint and more.
Used packages