/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: globalAlpha

[this page | pdf | back links]

The globalAlpha property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element sets / returns the current alpha, i.e. transparency value, of the drawing.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile