Search Documentation

colors Number of Palette 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.

<link rel="stylesheet" href="https://static.imgix.net/treefrog.jpg?w=640&h=320&fit=crop&auto=format&palette=css&colors=4">

A very colorful little frog

Original Palette
Dominance Palette