getPalette

fun getPalette(maxSize: Int = 10): List<Color>

Gets the color palette of the image.

Return

A list of Color objects representing the image's color palette.

Parameters

maxSize

The maximum number of colors to include in the palette.