How to change the opacity (alpha, transparency) of an element in a canvas element?

Using the HTML5 <canvas> element, I would like to load an image file (PNG, JPEG, etc.), draw it to the canvas completely transparently, and then fade it in. I have figured out how to load the image and draw it to the canvas, but I don’t know how to change its opacity. Here’s the code … Read more

SVG fill color transparency / alpha?

Is it possible to set a transparency or alpha level on SVG fill colours? I’ve tried adding two values to the fill tag (changing it from fill=”#044B94″ to fill=”#044B9466″), but this doesn’t work. 7 s 7 You use an addtional attribute; fill-opacity: This attribute takes a decimal number between 0.0 and 1.0, inclusive; where 0.0 … Read more