alpha property

Gets or sets whether the drawing buffer has an alpha channel for alpha compositing and operations.

IE11

Syntax


<body>
  <canvas id="canvas"></canvas>
  ...
<script>
  // get context
  var gl = document.getElementById("canvas").getContext("experimental-webgl");
  var isAlpha = gl.alpha;
  ...

Property values

Type: Boolean

ValueCondition
true

An alpha buffer is available.

false

No alpha buffer is available.

 

See also

WebGLContextAttributes

 

 

Show:
© 2014 Microsoft