yuntaozhu / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

alpha.js allow colors without alpha components to be processed #453

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to be able to generate an rgba color out of a color string in 
any valid format (e.g., hex, rgb, rgba, named), but this is currently not 
supported. Any color without an alpha component cannot be processed. This _can_ 
be achieved by using both color.js and alpha.js, but it might be more user 
friendly to provide a method in alpha.js that would work for all color formats. 
If no alpha value is included in the original format then an additional 
parameter would be allowed to specify the default alpha value.

Is this something that the project deems desirable?  If so I am willing to work 
on a patch.

Original issue reported on code.google.com by bob.silv...@gmail.com on 20 Apr 2012 at 5:25

GoogleCodeExporter commented 8 years ago

Original comment by chrishe...@google.com on 11 May 2012 at 8:19