title: RenderingContext

sidebar_label: 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

API WeChat Mini-Program H5 React Native
RenderingContext ✔️