RenderingContext

RenderingContext is a helper type representing any of the following rendering contexts CanvasRenderingContext2D, WebGLRenderingContext or 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
WHATWG HTML Living Standard
The definition of 'RenderingContext' in that specification.
Living Standard Initial definition.

 

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/renderingcontext

API Canvas Helper Reference Référence