Colorpaletteconverter 0.3.1 | Coderz Repository

colorpaletteconverter 0.3.1

Last updated:

0 purchases

colorpaletteconverter 0.3.1 Image
colorpaletteconverter 0.3.1 Images

Free

Languages

Categories

Add to Cart

Description:

colorpaletteconverter 0.3.1

ColorpaletteConverter
Export colorpalettes in Python to the MacOS color helper.

Install
pip install colorpaletteconverter

Note: MacOS only
Usage
import colorpaletteconverter as cv

# Create the palette, named "MyPythonPalette"
mypalette = cv.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()

# To save it to an alternative location
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.

Matplotlib color palettes: https://matplotlib.org/stable/tutorials/colors/colormaps.html
Seaborn color palettes: https://seaborn.pydata.org/tutorial/color_palettes.html

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

PyObjC

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.