IdaJS
    Preparing search index...

    Interface PaletteConfiguration

    Configuration for palette conversion.

    interface PaletteConfiguration {
        algorithm?: PaletteAlgorithm;
        alphaTreshold?: number;
        paletteIndex?: number;
    }
    Index

    Properties

    algorithm?: PaletteAlgorithm

    The algorithm to use for palette conversion. If not specified, a default one will be used.

    alphaTreshold?: number

    Only valid for the sprites. Consider all the pixels with alpha below this treshold as transparent. Default: 200.

    paletteIndex?: number

    The index of the palette to use. For sprites doesn't matter, as they will always be converted to the LBA palette. For images use 0, to convert them to the LBA palette. If not specified, the palette will be built automatically. Convert images to the LBA palette only if you need to use dialogs on top of them (LifeOpcodes.LM_PCX_MESS_OBJ).