Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 869 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 869 Bytes

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]