[whatwg] Propsal: Mechanism for converting rgb, hex, and named color strings between one another

Shiv Kumar skumar at exposureroom.com
Wed Sep 22 14:55:11 PDT 2010


> I propose that we provide a way for developers to get all color
equivalents of a valid color string - red, #ff0, rgb(255, 0, 0).



 

I've gone through similar and painful motions. So yes, I'd like to see easy
ways to get this conversion/information.

 

xxxAsRgb()

xxxToRgb()

xxxAsHex()

xxxtoHex()

 

Shiv

 <http://exposureroom.com/> http://exposureroom.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100922/bcd01872/attachment-0002.htm>


More information about the whatwg mailing list