__init__.pyi

646 B · python · 11 lines

1from typing import Any, Literal23from numpy.typing import NDArray4import mrlypy.core5from . import census, geometry, models, serializer67def grow(pattern: NDArray[Any], level: int) -> dict[str, Any]:8    """Grows a seed pattern into a cell, deepened to its fractal past level one."""910def paint(cell: dict[str, Any], custom: dict[int, list[tuple[int, int, int, int]]] | None = None, mode: Literal["Type", "Tag", "Index", "Enumerate", "Random", "Row", "Column", "Depth"] | None = None, rng: mrlypy.core.Rng | None = None) -> dict[str, Any]:11    """Colors the cell through the given mapping and mode, defaulting to the standard palette by type."""