A reference to an HTML canvas element. (Default created and appending to container)
A container element which regl inserts a canvas into. (Default document.body)
A list of extensions that must be supported by WebGL context. Default []
A reference to a WebGL rendering context. (Default created from canvas)
An optional callback which accepts a pair of arguments, (err, regl) that is called after the application loads. If not specified, context creation errors throw
A list of extensions which are loaded opportunistically. Default []
A multiplier which is used to scale the canvas size relative to the container. (Default window.devicePixelRatio)
If set, turns on profiling for all commands by default. (Default false)
Generated using TypeDoc
The context creation attributes passed to the WebGL context constructor