/p8fy

Python package that allows to transform an image to use PICO-8's color palette.

Primary LanguagePythonMIT LicenseMIT

p8fy

Python package that allows to transform an image to use PICO-8's color palette.

Installing the package

cd p8fy
pip install -r requirements.txt
pip install .

Usage

import p8fy

image = p8fy.image(path = "/path/to/image.png",
                   importable = True,
                   saturation = 2.0,
                   rgb_weights_preset = 0)

Examples

example0 example1 example2 example3 example4

License

Released under MIT license. See LICENSE for details.