sweets-brittle-vibrant

0.9.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.0
    2

Package Sidebar

Install

npm i sweets-brittle-vibrant

Weekly Downloads

2

Version

0.9.0

License

MIT

Last publish

Collaborators

  • velocityzen