textmode.overlay.js
DOM overlay target capture and geometry synchronization for textmode.js.
Sketch workflow
- Add OverlayPlugin to the sketch's plugins.
- Bind a live canvas or video with
t.overlay.setTarget(). - Shape the returned texture with the standard character, color, conversion, and transform settings.
- Show, hide, or toggle the output canvas while drawing continues.
Overlay controller
The per-instance controller that samples a target and keeps the output aligned.
| Interface | Description |
|---|---|
| TextmodeOverlayController | Controls the sampled target and DOM alignment for one textmode.js instance. |
Target types
The live browser media elements the overlay can sample.
| Type Alias | Description |
|---|---|
| TextmodeOverlayTarget | A live browser media element that can be sampled by the overlay controller. |
Workflow
The plugin that installs the overlay controller on textmode.js layers.
| Variable | Description |
|---|---|
| OverlayPlugin | Installs an isolated overlay controller on each textmode.js instance. |