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

> 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.htm>

Received on Wednesday, 22 September 2010 14:55:11 UTC