3 ms·
The code is on github: https://github.com/VitoVan/wonder-color/ https://github.com/VitoVan/wonder-color/ Essentially: * Bing image search for the phrase enter
by gregmac 11y ago
The code is on github: https://github.com/VitoVan/wonder-color/ https://github.com/VitoVan/wonder-color/
Essentially:
* Bing image search for the phrase entered
* Downloads first result from Bing and saves to disk
* Your browser then loads the downloaded image
* http://jariz.github.io/vibrant.js/ http://jariz.github.io/vibrant.js/ is then used to pick "prominent colors" from the image
* These are then the swatches displayed
Vibrant is a port of Android Palette (https://developer.android.com/reference/android/support/v7/graphics/Palette.html https://developer.android.com/reference/android/support/v7/g...), which specifically extracts colors it calls: "Vibrant", "Vibrant Dark", "Vibrant Light", "Muted", "Muted Dark", and "Muted Light".
I think this is why it also seems to create colors that don't appear to be related at times. I found the colors returned when searching for "black" and "white" particularly bizarre. "white" for example, gets what looks like a pure white image, but then has cyan and purple swatches: http://i.imgur.com/zlObSsB.png http://i.imgur.com/zlObSsB.png
- jlarocco 11y agoYeah, I saw the link to GitHub... I guess my point was that the OP will have better luck promoting his work if he gives people a clue about what they're looking at, and some brief instructions on how to use it. I'm sorry, but I'm not going to drop everything and dig through your source code just to figure out how to use your web page or WTF you're even trying to do.
- VitoVan 11y agoVery sorry about this, I've changed the description under the page and says: "Try inputs like 'ycombinator' or 'facebook', or even 'doraemon'. Everything is supported, especially logos. ". I think these words may work better than "I feel sorrow", and thanks for your comments, they make me realize that a good instruction means a lot.