Parameters
- paletteType
- The desired pre-defined palette type.
- addTransparentColor
- The optional transparent color to add to the palette. If no transparent color is needed, use false. When initializing to a grayscale or black and white palette, set this parameter to false.