majiayu000/spellbook / skills/ascii-backdrop
ascii-backdrop
VerifiedTurn any subject into an animated ASCII backdrop behind a UI, like a dark prompt page with jellyfish drawn in drifting characters, or a swarm of colour-tile bodies that veer away from the cursor. The subject is open-ended: creatures, objects, particles, smoke, a word or logo, an image or video, a per-pixel field, a shaded 3D solid, or your own canvas draw function. Six print modes can be mixed: brightness glyphs, edge-following glyphs, shape-matched glyphs, braille dots, ordered-dither dots and colour tiles; plus cursor glow, click ripples, a CRT terminal finish, and two page helpers (text decode and image-to-ASCII dissolve). Ships a dependency-free JS engine with HTML and React wiring. Use when the user asks for an ASCII background, ASCII art animation, glyph or braille backdrop, text scramble/decode, or an ASCII image reveal, or says 'ASCII 背景' / '字符画动效'.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.4 KB |
| assets/ascii-backdrop.js | script | 53.1 KB |
| assets/demo.html | other | 14.8 KB |
| scripts/check.mjsexecutable | script | 2.2 KB |
| scripts/regression.mjs | script | 36.5 KB |
scripts/check.mjs
View on GitHub#!/usr/bin/env node
// Screenshot a page that uses ascii-backdrop at desktop and phone size and with reduced motion;
// print the frame rate and any page errors.
// npm i -D playwright && npx playwright install chromium
// node check.mjs path/to/page.html [out-prefix]
// Set CHROME_PATH to use an existing Chrome or Chromium instead of Playwright's download.
import { chromium } from 'playwright';
import path from 'node:path';
const page = path.resolve(process.argv[2] || 'page.html');
const out = process.argv[3] || page.replace(/\.html$/, '');
const browser = await chromium.launch({ executablePath: process.env.CHROME_PATH || undefined });
const errors = [];
for (const [name, viewport] of [['desktop', { width: 1440, height: 900 }], ['phone', { width: 390, height: 844 }]]) {
const p = await browser.newPage({ viewport, isMobile: name === 'phone' });
p.on('pageerror', (e) => errors.push(`${name}: ${e}`));
p.on('console', (m) => m.type() === 'error' && errors.push(`${name}: ${m.text()}`));
await p.goto('file://' + page);
await p.waitForTimeout(2500);
await p.screenshot({ path: `${out}-${name}.png` });
const frames = await p.evaluate(() => new Promise((resolve) => {
const counts = new Map(), t0 = performance.now();
const onFrame = (event) => counts.set(event.target, (counts.get(event.target) || 0) + 1);
document.addEventListener('ascii-backdrop:frame', onFrame);
setTimeout(() => {
document.removeEventListener('ascii-backdrop:frame', onFrame);
const elapsed = performance.now() - t0;
resolve([...counts].map(([canvas, count], i) =>
`${canvas.id || 'canvas ' + (i + 1)}: ${(count * 1000 / elapsed).toFixed(1)} completed backdrop frames/s`));
}, 2000);
}));
console.log(`${name}: ${out}-${name}.png, ${frames.join('; ') || '0 completed backdrop frames/s (no frame signal observed)'}`);
await p.close();
}
const still = await browser.newPage({ viewport: { width: 1440, height: 900 }, reducedMotion: 'reduce' });
await still.goto('file://' + page);
await still.waitForTimeout(1500);
await still.screenshot({ path: `${out}-reduced.png` });
console.log(`reduced motion: ${out}-reduced.png (should be one still frame)`);
console.log(errors.length ? 'ERRORS\n' + errors.join('\n') : 'no errors');
await browser.close();
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |