A code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order with a caret on the line being typed, keywords in the accent colour and // comments dimmed. No script and no per-letter markup, because a line's width is its character count in ch. For show, not for syntax highlighting. Standalone it renders all the code.
| Surface | Note |
|---|---|
| Prints the final state (type fully revealed, numbers at their values, shapes drawn); no motion | |
| google-chat | Inline CSS functions and custom properties are not supported |
| Field | Type | Required |
|---|---|---|
| lines | array (max 14) of string (max 72 characters each). Blank strings are blank lines. | required |
| file | string (optional, max 32). Shown in the window bar. | optional |
| size | integer. Font size px, 8-60. Default 18. | optional |
| accent | "#rrggbb". Keywords and caret. Default the stage accent. | optional |
{
"type": "motion_code",
"lines": [
"$ npm install a2ui",
"added 42 packages",
"\u2713 Done in 1.2s"
]
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:motion_code",
"displayName": "Motion Code",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/motion_code",
"capabilities": [
"web",
"google-meet-stage",
"google-apps-script-web",
"mcp-apps",
"android"
],
"description": "A code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order with a caret on the line being typed, keywords in the accent colour and // comments dimmed. No script and no per-letter markup, because a line's width is its character count in ch. For show, not for syntax highlighting. Standalone it renders all the code.",
"representativeQueries": [
"show a code window that types itself in as progress advances",
"a code window that types itself in as p goes 0 to 1: monospace lines revealed left to right in order",
"render a motion code"
]
}
The renderer is an open-source Google Apps Script web app. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.
git clone https://github.com/a2uicatalog/a2ui
cd a2ui/apps-script-surface/gas-wired-renderer
clasp push && clasp deploy
Full deploy guide →