Skip to content

Function: supportsWebGL() ​

ts
function supportsWebGL(): boolean;

Returns true if WebGL is supported in the current browser environment.

Returns ​

boolean

Example ​

ts
supportsWebGL() // true in most modern browsers

Since ​

1.0.0

Released under the MIT License.