Skip to main content
Version: 3.x

RenderingContext

The canvas drawing context.


You can use the Canvas.getContext('webgl') or OffscreenCanvas.getContext('webgl') API to get the WebGLRenderingContext object. All the properties, methods, and constants defined by WebGL 1.0 are implemented.

Reference

API Support

APIWeChat Mini-ProgramH5React Native
RenderingContext✔️