Return to Snippet

Revision: 48283
at June 28, 2011 07:26 by inreflection7


Initial Code
// Replace 0.6 with your desired alpha level
Math.floor(0.6 * 255).toString(16);

//filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000

Initial URL

                                

Initial Description
A really fucking cool and easy way to calculate the alpha value for microsoft gradient using Javascript. Particularly useful in the Firebug console. Like a calculator.

Initial Title
Convert rgba alpha value to microsoft gradient

Initial Tags
javascript

Initial Language
JavaScript