Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript CoffeeScript Ruby
branch: master
Failed to load latest commit information.
lib add save/cancel buttons
site Fixes IE9 vertical stacking issue
src add save/cancel buttons
.gitignore first commit
Gemfile first commit
Gemfile.lock first commit
LICENSE readme and some refactoring
README.md move styles
Rakefile readme and some refactoring
index.html fix few issues

README.md

ColorCanvas

A canvas based color picker. Demo.

ColorCanvas

Usage

Include the two scripts, lib/colorcanvas.js and lib/colorcanvas.input.js inside your page.

<head>
  <script src="lib/colorcanvas.js"></script>
  <script src="lib/colorcanvas.input.js"></script>
</head>

Any color inputs will now automatically be shimmed.

<input type="color" value="#FF0000">

You may also want to include the default styles, located in site/styles.css.

Building

You can build ColorCanvas using Ruby's Bundler.

bundle install
rake build

Acknowledgments

Many thanks to Jeremy Apthorp for advice and bug fixing.

Something went wrong with that request. Please try again.