# HTML-in-Canvas
Render live HTML as WebGL textures — GPU shaders, 3D geometry, and cinematic effects on any DOM content.
The HTML-in-Canvas API (`drawElementImage`) lets you capture live, rendered DOM elements directly into a canvas at GPU speed. This means you can take any HTML — dashboards, forms, landing pages, app UIs — and render them as textures in WebGL scenes with shaders, 3D transformations, and post-processing effects.
> **Chrome flag required for live preview only.** The `drawElementImage` API is experimental.
>
> 1. Open `chrome://flags/#canvas-draw-element` in Chrome or Brave
> 2. Set **CanvasDrawElement** to **Enabled**
> 3. Restart the browser
>
> HyperFrames enables this flag automatically during rendering (`--enable-features=CanvasDrawElement`), so rendered videos work without manual setup. The flag is only needed for live preview in the Studio.
When this skill runs inside Open Design, the daemon shells out to `npx hyperframes render`, which inherits the auto-enable. You do **not** need to add browser flags or pass extra CLI args from the agent.
## How it works
1. Place HTML content inside a `