Curvature of the Mind

Thoughts from a Recreational Physicist

HTML5 color eyedropper

May 17, 2012 by Andy Brummer 1 Comment

This is an uber-simple html5 eye dropper tool that creates a json array of rgba values. It’s the format I like to use for my demos and while I have a few colorpickers installed in my browsers there wasn’t one that let me pick a bunch of colors quickly from one image and get them in the format I needed. With some quick hacking I was able to put this together in about 50 lines of Javascript. Hopefully this leads to some more color full demos in the future.

Filed Under: Experiments Tagged With: color, html5, images, javascript

Logging In...

Profile cancel

Sign in with Twitter Sign in with Facebook
or

Not published

  • 1 Reply
  • 1 Comment
  • 0 Tweets
  • 0 Facebook
  • 0 Pingbacks
Last reply was July 5, 2014
  1. isal
    View July 5, 2014

    i need source code

pages

  • 3D harmonic oscillator eigenfunctions
  • About
  • Images
    • 2 simple
    • atomic
    • IFS fractals: 2 transformations
    • random
  • Inspiration
  • Work
    • Atomic Orbitals
    • The surprises keep comming
    • Voronoi

Copyright © 2021 · Curvature of the Mind 2 on Genesis Framework · WordPress · Log in