EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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. Default.

false

No alpha buffer is available.

 

See also

WebGLContextAttributes

 

 

Afficher:
© 2014 Microsoft