briangonzalez / jquery.adaptive-backgrounds.js

🦎 A jQuery plugin for extracting the dominant color from images and applying the color to their parent.
http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/
6.54k stars 454 forks source link

Could we have an option to ignore a certain color? #7

Closed briannelson closed 10 years ago

briannelson commented 10 years ago

This plugin looks great, and I'm thinking of using it on a site where our users upload a logo, usually surrounded by a white background. I can only imagine everyone's "adaptive background" will end up being #fff. It'd be great to be able to pass in a hex code for a color NOT to use as the background. Thoughts?

briannelson commented 10 years ago

Nevermind. I see that black and white are built in to RGBaster. Might still be useful for other hexes though?