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 0
– 16
. 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="https://static.imgix.net/treefrog.jpg?w=640&h=320&fit=crop&auto=format&palette=css&colors=4"
/>