pypindou

Pure Python image-to-fuse-bead pattern generation.

pypindou exposes the stable public API for loading built-in bead palettes and generating pypindou.pattern.Pattern objects from images. Lower level image preprocessing and quantization helpers remain available from their subpackages for applications that need custom workflows.

Example:

>>> from PIL import Image
>>> from pypindou import generate_pattern
>>> pattern = generate_pattern(Image.new("RGB", (2, 2), "white"), width=2, height=2, color_space="rgb")
>>> pattern.bead_count
4

__all__

pypindou.__all__ = ['__version__', 'BeadColor', 'Palette', 'Pattern', 'PatternOptions', 'SymbolFormat', 'SymbolLabelMode', 'generate_pattern', 'get_palette', 'list_palettes', 'load_palette']

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.