Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas globalAlpha Property

HTML canvas globalAlpha Property

 

 

The globalAlpha property is used to sets or returns the current alpha or transparency value of the drawing. Its value ranges from 0.0(fully transparent) to 1.0(full opaque).

 

Syntax:-

 

Its syntax is:- context.globalAlpha = number;

 

Further Explanation:-

 

Value Description
number The transparency value.

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas