{{APIRef("Canvas API")}}
RenderingContext
is a helper type representing any of the following rendering contexts {{domxref("CanvasRenderingContext2D")}}, {{domxref("WebGLRenderingContext")}} or {{domxref("WebGL2RenderingContext")}} (which inherits from WebGLRenderingContext
).
This is a helper type to simplify the specification, it isn't an interface and there are no objects implementing it.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "scripting.html#renderingcontext", "RenderingContext")}} | {{Spec2('HTML WHATWG')}} | Initial definition. |