A color picker coded using Raphael and jQuery. The wheel is drawn using the Raphael js library. jQuery is used to assist with events.
The wheel size is set on creation. It supports a small set of callbacks and touch events
It was created for the UI at Fame Driver and distributed with a MIT license.
Hope you enjoy it – John Weir
⇓ Download or see the Github page.
Requires jQuery and Raphael version 2.1.0 or greater.
Assigning an input to a colorwheel will allow the user to directly change the hex color value.
When the input is set the colorwheel will set its color to the input's value
Simple example using the callback to update an element's text and css.
The wheel can be scaled to suit your needs. The large ring has larger number of segments, to make it smoother.
When the color is changed a callback is used to change the colors of each letter below.