0.9.0 • Published 8 years ago

sweets-brittle-vibrant v0.9.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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.