Skip to content

mdellanoce/colorstrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

296fbc8 · Dec 11, 2011

History

32 Commits
Nov 8, 2011
Nov 9, 2011
Nov 8, 2011
Nov 8, 2011
Dec 7, 2011
Nov 28, 2011
Dec 11, 2011
Nov 8, 2011
Dec 11, 2011
Dec 11, 2011
Dec 11, 2011

Repository files navigation

This is a jQuery plugin intended to be an imprecise color picker. Colorstrip currently requires a browser that supports the canvas element.

Using it

Put a div (or canvas element) somewhere on your page. It can be any width and height, colorstrip will automatically scale itself to fit the element's width and height.

<div id="color"></div>

Include jQuery and the colorstrip plugin on your page. Create the colorstrip in a script block.

$('#color').colorstrip(function(hex) {
  //Handle the color change event somehow...
});

The colorstrip can also display a preview of the current color as it changes:

$('#color').colorstrip({
  preview: 'right',
  change: function(hex) {
    //Handle the color change event somehow...
  }
});

Currently only right is supported for the preview option.

About

Simple jQuery color picker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published