# colpick Color Picker

## Usage examples

### Button

`$('#example-button').colpick();`

### Flat mode and hex layout

`$('#example-flat').colpick({ color:'123456', flat:true, layout:'hex' });`

### Text Input and colorScheme 'dark'

`$('#example-text').colpick({ colorScheme:'dark', onChange:function(hsb,hex,rgb,el,bySetColor) { $(el).val('#'+hex); } });`

### HTML5 Color Input

`$('#example-color').colpick({ onSubmit:function(hsb,hex,rgb,el,bySetColor) { $(el).val('#'+hex); $(el).colpickHide(); } });`

### Polyfill

`$('#example-polyfill').colpick({ polyfill:true });`