Demo & discussion
=================
Visit: [http://www.daviddurman.com/flexi-color-picker](http://www.daviddurman.com/flexi-color-picker)
Features
========
- no Flash, images or 1px divs
- no dependency on an external JavaScript library
- dimensions of both the picker and the slider areas can be adjusted arbitrarily
- minimalistic (about 400 loc including comments)
- support for a large scale of browsers (including mobile browsers)
- understandable (no magic behind, code can be easily read and therefore adjusted)
- styleable in CSS
- position of the slider and the picker areas is not hardcoded and can be changed in CSS
- HSV, RGB and HEX output/input
- indicators (pointers to the slider and picker areas) can be arbitrary HTML elements (images, divs, spans, ...) styleable in CSS
- ready-to-use themes (stored in one CSS stylesheet)
Description
===========
FlexiColorPicker is based on HSV color model. The only two parts of the color picker are therefore
the **slider** for selecting _hue_ value and the **picker** for selecting _saturation_ and _value_. Both
the **slider** and **picker** are HTML elements (usually `
`'s) that serve as wrappers for SVG/VML gradient
rectangles. The **slider** gradient rectangle represents the _hue_ value (gradient with 9 `stop-color`s). The
two overlapping black and white gradient rectangles of the **picker** represent the _saturation_ and _value_ values.
The top level elements (`