laktek/really-simple-color-picker — pull request #11 by albatrocity (2012-09-19 21:23:02+00:00)
Title: Named colors

Hey Lakshan! Thanks for this nice little plugin.

I modified it to accept an array of objects for colors so that you can specify a color name instead of for friendlier output:

```javascript
var namedColors = [
{name: "Hot Pink", hex: "cb3398"},
{name: "Red", hex: "cc0001"},
{name: "Orange", hex: "fe6500"},
{name: "Powder", hex: "32ccfe"},
{name: "Soft Pink", hex: "fe98ca"},
{name: "Navy Blue", hex: "010066"},
{name: "Yellow", hex: "ffcc00"},
{name: "Black", hex: "000000"},
{name: "Purple", hex: "c2aeeb"},
{name: "Green", hex: "006500"}
]

$('#color3').colorPicker({colors: namedColors});
```

The names show up in the palette and are passed into the `onColorChange` function.

Not sure how useful this is to anyone else, but I needed it for a project and thought I'd share.

Cheers!
Ross