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.

Learning resources on MDN

Browser support

Baseline availability blocked since January 2020 by Safari (59 months)