INNER CODE UNIT · Python

generate_sprite

ljvmiranda921/sprites-as-a-service · backend/sprites/sprites.py:21

def generate_sprite(
    n_iters: int = 1,
    extinction: float = 0.125,
    survival: float = 0.375,
    size: int = 180,
    sprite_seed: int = None,
    color_seeds: List[int] = None,
):
    """Generate a sprite given various parameters

    Parameters
    ----------
    n_iters : int
        Number of iterations to run Conway's Game of Life.
    extinction : float (0.0 to 1.0)
        Controls how many dead cells will stay dead on the next iteration
        Default is 0.125 (around 1 cell)
    survival: float (0.0 to 1.0)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…