sweets-brittle-vibrant
v0.9.0
Published
Processor for sweets-brittle that extracts prominent colors from an image.
Downloads
4
Maintainers
Readme
Sweets
Flexible declarative web framework for real-time projects
Brittle vibrant
Processor for sweets-brittle that extracts prominent colors from an image.
Uses node-vibrant under the hood
Methods
####preview
- colors — type of colors to return from vibrant, muted, darkVibrant, darkMuted, lightVibrant, lightMuted. If no colors options specified will return all types.
- hsl
- rgb
- hex
- population
- titleText — returns an appropriate color to use for any 'title' text which is displayed over this color.
- bodyText — returns an appropriate color to use for any 'body' text which is displayed over this color.