Generates a color palette for RGBA image.
Log of the number of colors. Use 8 for 256 colors and 4 for 16 colors.
Takes in an RGBA image data, and applies the palette to it, returning an 8-bit image.
Whether to use premultiplied colors in the distance function
Generated using TypeDoc
Generates a color palette for RGBA image.