const canvas = document.getElementById("myCanvas");
const gl = canvas.getContext("webgl");
gl.getParameter(gl.LINE_WIDTH);WebGL constants / notebook
WebGL constants
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
const vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);