How do I make a transparent canvas in html5?

Urmelinho picture Urmelinho · Jan 27, 2011 · Viewed 171.8k times · Source

How can I make a canvas transparent? I need to because I want to put two canvases on top of one another.

Answer

Omiod picture Omiod · Jan 27, 2011

Canvases are transparent by default.

Try setting a page background image, and then put a canvas over it. If nothing is drawn on the canvas, you can fully see the page background.

Think of a canvas as like painting on a glass plate.