![]() If palette is set to json, the prefix parameter is ignored. The JSON object has three top-level properties: a floating-point average_luminance value, a colors array of colors for the original palette, and a dominant_colors array that represents the Vibrant.js-style values.Įach color in the colors and dominant_colors arrays contains a hash describing its red, green, and blue components (expressed as floating point numbers between 0.0 and 1.0), and a hex value. The response will be a JSON object with the application/json MIME type. If prefix is also set, its value will replace "image" in the CSS class names in the output CSS file.image-fg-1 The CSS output also includes white and black, to make displaying a colorPalette-swatch set easier. The foreground class has a color property defined, while the background class has a background-color property defined. Create your own palette with the manual color picker. Automatic image-based recommendations using a color palette Download PDF Info. Class pairs have a "foreground" and a "background" defintion. The generator picks up 10 colors in order of dominance, missing small quantity colors. The response to the image request will be a CSS file with the text/css MIME type. It may return all six colors, a portion, or none, although most images will return a complete set. The dominance palette will vary (and may not be generated) depending on whether the image's colors meet the criteria for each name. The dominance palette set provides up to six named colors: Easily generate awesome color palettes from an image. The default palette set defaults to six colors, but can be overridden with the colors parameter. 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. The default set is strictly algorithmic, based on frequency of the color in the image, and is always available. This parameter generally outputs two palette sets-both choose colors based on their dominance in the image. Palette extraction occurs after image processing, so applying any adjustments and cropping effects will change the color palette response. The palette parameter extracts a palette of color values from an image and returns them in the specified format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |