Khan / live-editor

A browser-based live coding environment.
Other
761 stars 184 forks source link

HTML color picker for non rgb() color formats? #579

Open darrylyeo opened 8 years ago

darrylyeo commented 8 years ago

The color picker only appears when using rgb() or rgba() formats. Other color formats, such as hexadecimal or hsl(), should be supported as well.

kevinbarabash commented 8 years ago

It looks like the color picker supports HSB, see https://github.com/Khan/live-editor/blob/master/js/ui/tooltips/color-picker.js#L21-L23. Apparently HSB and HSL are different, but CSS doesn't support HSB so maybe it's just mis labeled.

MatthiasPortzel commented 8 years ago

The color picker that Khan Academy uses is taken from here, and it does include support for more color formats than KA currently supports.