IdaJS
    Preparing search index...

    Interface PaletteAlgorithms

    Palette conversion algorithms for image importing (if you want to customize the style and improve the quality).

    interface PaletteAlgorithms {
        $: EnumHandler;
        CIELABDeltaE: 4;
        CIELABDeltaEDithered: 5;
        Euclidean: 0;
        EuclideanDithered: 1;
        WeightedEuclidean: 2;
        WeightedEuclideanDithered: 3;
    }
    Index

    Properties

    Enum handler for this enum object

    CIELABDeltaE: 4

    CIE LAB Delta E color difference. Experimental. Most accurate but slow

    CIELABDeltaEDithered: 5

    CIE LAB Delta E color difference with dithering. Experimental. Most accurate but slow

    Euclidean: 0

    The fastest, but the least careful. Good for simple icons, also must be used for PNGs that already use LBA2 scene palette

    EuclideanDithered: 1

    Fast conversion with dithering - better results for bigger images

    WeightedEuclidean: 2

    Weighted RGB distance considering human perception - slightly slower than Euclidean, but better

    WeightedEuclideanDithered: 3

    Weighted RGB distance considering human perception with dithering - the best balance between speed an quality