Reference webglVersion

webglVersion

A String variable with the WebGL version in use.

webglVersion's value equals one of the following string constants:

  • WEBGL2 whose value is 'webgl2',
  • WEBGL whose value is 'webgl', or
  • P2D whose value is 'p2d'. This is the default for 2D sketches.
  • P2DP3 whose value is 'p2d-p3' (used for P3 2D sketches, if available).

See setAttributes() for ways to set the WebGL version.

Examples


Related References