@blockchaincommons/lifehash - v1.0.0-beta.2
    Preparing search index...

    Interface LifeHashImage

    A rendered LifeHash: colors holds width × height RGB triples, or RGBA with an opaque alpha of 255 when channels is 4. The record is frozen; the pixel buffer is freshly allocated and may be written to.

    interface LifeHashImage {
        width: number;
        height: number;
        channels: 3 | 4;
        colors: Uint8Array<ArrayBuffer>;
    }
    Index
    width: number

    Width in pixels: the image's side (32 or 64) times moduleSize.

    height: number

    Height in pixels; LifeHash images are square.

    channels: 3 | 4

    Bytes per pixel: 3 for RGB, 4 for RGBA.

    colors: Uint8Array<ArrayBuffer>

    Row-major pixel bytes, exactly width × height × channels long.