--- title: RenderingContext slug: Web/API/RenderingContext translation_of: Web/API/RenderingContext original_slug: Web/API/RenderingContext --- <p>{{APIRef("Canvas API")}}</p> <p><code><strong>RenderingContext</strong></code> 是一个辅助类型,描述下面任何一个渲染上下文: {{domxref("CanvasRenderingContext2D")}}, {{domxref("WebGLRenderingContext")}} 或者 {{domxref("WebGL2RenderingContext")}} (继承自 <code>WebGLRenderingContext</code>)。</p> <p>这是简化规范的辅助类型,它不是一个接口,也没有对象实现它。</p> <h2 id="规范描述">规范描述</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> <tr> <td>{{SpecName('HTML WHATWG', "scripting.html#renderingcontext", "RenderingContext")}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td>Initial definition.</td> </tr> </tbody> </table> <p> </p>