Skip to content
/ jsccp Public

Simple circular color picker in JavaScript with scroll and touchscreen support.

License

Notifications You must be signed in to change notification settings

0xFaul/jsccp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Circular Color Picker


About

Simple circular color picker in JavaScript with scroll and touchscreen support.

type="simple" type="complex"
Simple Complex

Requirements

  • None

Usage

  1. simply add
<div class="colorpicker" type="simple"></div>

or

<div class="colorpicker" type="complex"></div>

to your HTML code

  1. Set the size with a bit of CSS

  2. Put all resources into the resources folder

  3. Add <script src="./resources/colorpicker.js"></script> to the bottom of the page

  4. Add an EventListener to the colorpicker element and listen for the 'colorchange' event. The color values are stored in event.detail.color

  5. You're done!

Author

Sebastian Faul - [email protected]

About

Simple circular color picker in JavaScript with scroll and touchscreen support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published