Git Product home page Git Product logo

colorscanner's Introduction

JS Image Color Scanner

Since iTunes updated to the eleventh version, the thing I liked the most was the new Album View.

image

I wanted to study Canvas and CoffeeScript, so I took this as an oportunity to create an algorithm capable of replicating this effect.

image

##Things I need to improve

So, as you can see in the demo, the script doesn't handle colors that well. It will print dark color on a dark background and I think I can scan the image for the colors in a more efficient way. I'll update this script soon with anything I improve :)

What this is not

This is not, yet at least, intended as a library or to be used for production. You can, however, clone this repository and experiment with it and, if you decide do use it on your project or make any modification you think would be worth mentioning here, let me know. You are welcome to open a pull request.

Browsers

I've tested this script in the following browsers:

Chrome 31.0.1650.63 - Works as expected Safari 7.0 - Does not work. This seems to be a bug with the jQuery handling of the image. I'll try to ditch the jQuery (at least for this) in the next version.

If you test this in other browser, please, open an issue with the following pattern:

[Browser Test] - - <Description, if needed>

######Example [Browser Test] - Chrome 31.0.1650.63 - Works as expected

Thanks.

####Dependencies

jQuery 2.x

colorscanner's People

Contributors

filipekiss avatar

Stargazers

Scott Miner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.