Creates a WebGL context without a window for headless rendering and server-side graphics
Overall
score
96%
{
"context": "This criteria evaluates how well the engineer uses the gl package's context attribute configuration capabilities to create WebGL contexts with different settings. The evaluation focuses on proper usage of the createContext function with the correct options object.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses createContext",
"description": "Uses gl.createContext() or the default export from the gl package to create WebGL contexts",
"max_score": 20
},
{
"name": "Passes width/height",
"description": "Correctly passes width and height parameters as the first two arguments to createContext()",
"max_score": 10
},
{
"name": "Uses options object",
"description": "Passes a third argument (options object) to createContext() to configure context attributes",
"max_score": 15
},
{
"name": "Configures alpha attribute",
"description": "Sets the alpha property in the options object to control the alpha channel (true/false)",
"max_score": 10
},
{
"name": "Configures depth attribute",
"description": "Sets the depth property in the options object to control the depth buffer (true/false)",
"max_score": 10
},
{
"name": "Configures stencil attribute",
"description": "Sets the stencil property in the options object to control the stencil buffer (true/false)",
"max_score": 10
},
{
"name": "Configures antialias attribute",
"description": "Sets the antialias property in the options object to control antialiasing (true/false)",
"max_score": 10
},
{
"name": "Configures preserveDrawingBuffer",
"description": "Sets the preserveDrawingBuffer property in the options object to control buffer preservation (true/false)",
"max_score": 10
},
{
"name": "Maps config correctly",
"description": "Correctly maps the input config parameter to the gl package's context attribute options format",
"max_score": 5
}
]
}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