pierogis.ingredients.mmpx module

class pierogis.ingredients.mmpx.MMPX(opacity: int = 100, mask: Optional[numpy.ndarray] = None, **kwargs)[source]

Bases: pierogis.ingredients.ingredient.Ingredient

use the MMPX algorithm implemented in rust to scale 2x

produces interesting style preserving effects for “paletted” pierogis

cook(pixels: numpy.ndarray)[source]

use the binding to the rscolorq package in rust to perform an optimization in quantizing and dithering