Creates a WebGL context without a window for headless rendering and server-side graphics
Overall
score
96%
A utility that creates a WebGL rendering context and generates a checkerboard pattern texture using GPU texture operations.
@generates
/**
* Creates a WebGL context and generates a checkerboard texture.
*
* @returns {Object} An object containing:
* - gl: The WebGL context
* - texture: The created texture object
* - data: The Uint8Array containing the checkerboard pattern (256x256 RGBA)
*/
function createCheckerboardTexture() {
// IMPLEMENTATION HERE
}
module.exports = {
createCheckerboardTexture
};Provides headless WebGL context creation and rendering capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-gldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10