EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

canvas property

Reference to the canvas object that the associated WebGLRenderingContext.

This property is read-only.

IE11

 

Syntax


<body>
  <canvas id="canvas"></canvas>
  ...
<script>
  var gl = document.getElementById("canvas").getContext("experimental-webgl");
  ...
  //  Get canvas associated with gl
  var mycanvas = gl.canvas; 

Property values

Type: HTMLCanvasElement

Current canvas associated with WebGLRenderingContext being used.

See also

WebGLRenderingContext

 

 

표시:
© 2014 Microsoft