mwg API
    Preparing search index...

    Interface HeightmapSource

    Already-decoded pixel bytes, top-left origin, row-major, 4 bytes (RGBA) per pixel - a canvas getImageData().data is exactly this shape.

    interface HeightmapSource {
        data: Uint8Array;
        height: number;
        width: number;
    }
    Index
    data: Uint8Array
    height: number
    width: number