Interface ChunkedBitmapOptions

Construction options for ChunkedBitmap.

chunkSize must divide both width and height evenly; ragged edge chunks are not supported in v1.

interface ChunkedBitmapOptions {
    chunkSize: number;
    height: number;
    materials?: readonly Material[];
    width: number;
}

Properties

chunkSize: number

Edge length of each square chunk in pixels. Must be a positive integer.

height: number

World height in pixels. Must be a positive integer divisible by chunkSize.

materials?: readonly Material[]

Optional initial materials to populate the registry with.

width: number

World width in pixels. Must be a positive integer divisible by chunkSize.