Palette Color Count colors

Determines the size of the default palette returned by the palette parameter.

Default value is 6. Valid values are in the range 016. The value only specifies the number of colors in the default palette, given that the dominance palette may or may not be present.

The default set is strictly algorithmic, based on frequency of the color in the image, and is always available. The "dominance" set also weights frequency, but selects the colors to provide a more coordinated palette across the image's colorspace and names the colors by their relative values, like Vibrant.js does. See the palette docs for more information about the palettes.

<link rel="stylesheet" href="">

A very colorful little frog

Original Palette

Dominance Palette

See the API specification for more information about this parameter's value ranges and format.