Web features explorer

2D canvas opacity

Limited availability
Tags: api Groups: Canvas

The optional alpha parameter of a 2D canvas's getContext() method sets whether the canvas has an alpha transparency channel. If set to false, then this permits the browser to optimize compositing for an opaque canvas. To learn more, see HTMLCanvasElement: getContext() method at MDN.

Compatibility

Baseline availability blocked since June 2014 by Safari (125 months)