Vibrant-Colors / node-vibrant

🎨 Extract prominent colors from an image
MIT License
2.01k stars 107 forks source link

Access to Swatch class #104

Closed calebjclark closed 4 years ago

calebjclark commented 4 years ago

The documentation makes it seem that Swatch is attached to the top-level Vibrant object (Vibrant.Swatch), but it's not. I'd like to use the getBodyTextColor for an existing color I already have. Cool if I submit a pull request with Swatch attached to Vibrant?

crutchcorn commented 4 years ago

Please feel free to! I appreciate both the offer to help and making an issue to do so :)

calebjclark commented 4 years ago

Thanks for your fast response! Pull request submitted.

crutchcorn commented 4 years ago

Linked PR for reference: #105