ascii-backdrop
БесплатноЗапускает вложенные скриптыНе проверенTurn 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…
от majiayu000★ 301 звезда на GitHubОб этом скилле
ASCII Backdrop
A subject paints brightness or colour on a small canvas; the engine prints every character cell as a glyph, dot or tile. Anything that can paint on a canvas can be the subject.
How it works
Every frame, each layer's subject draws itself on a small offscreen canvas (a few pixels per character cell). The engine reads those pixels and prints them in the layer's mode. A lower depth dims a layer, which gives depth for free; a clear zone fades output around the UI so headings and inputs stay readable. Changing the subject means changing one draw function; the engine does not change.
| Print mode | Layer setting | Look | Frame cost at 1440×900 (measured) |
|---|---|---|---|
| Brightness glyphs | default mode: 'glyph' |
Glyph from the density ramp; the brightest cells print as filled boxes | ~8 ms |
| Edge glyphs | glyph: { edges: true } |
/ \ | - follow strong edges |
~8 ms |
| Shape matching | glyph: { match: 'shape' } |
Samples a 2×3 grid per cell and picks the glyph whose shape fits best, for crisper outlines (after Alex Harri) | ~5 ms (cached) |
| Braille | mode: 'braille' |
2×4 dots per cell, twice the resolution, optional Bayer dither | ~6 ms |
| Dither | mode: 'dither' |
Bayer 4×4 ordered dither, dots or squares sized by level | ~6 ms |
| Colour tiles | mode: 'tile' |
Rounded squares in the colours the subject paints | ~3 ms |
Subjects paint in white (brightness = density); only tile layers paint real colours. Layers in different modes can share one scene.
Files
assets/ascii-backdrop.js: engine, built-in subjects and page helpers, no dependencies, exposed aswindow.AsciiBackdrop. Copy it into the project.assets/demo.html: a dark prompt page with the backdrop behind it; switch subjects, print modes, glyph sets, CRT and palettes; the heading decodes; a corner card shows the image dissolve; upload an image or video.scripts/check.mjs: screenshots desktop, phone and reduced-motion views and reports errors and frame rate (needs Playwright).
Steps
- Choose the subject. Ask what it should say (a brand mascot, a product, a mood) instead of assuming a creature. Pick the source in this order:
- Existing image, SVG, video or logo:
subjects.image(src, { invert, motion }). Useinvert: truefor dark art on a light background. - A word, name or emoji:
subjects.text('…'). - A mathematical field (plasma, interference, noise, gradients):
subjects.field((u, v, t) => brightness)with u, v in [-0.5, 0.5], like a fragment shader. - A shaded 3D solid:
subjects.sdf({ shape: 'torus' | 'sphere' | 'box' | 'capsule' }), or pass your own(p) => distance. - Presets:
jellyfish,school(many small bodies),cloud(smoke, nebula),strands(kelp, hair;flip: truefor flames),rising(fire, bubbles, sparks;fall: truefor snow or rain),solid(spinning wireframe),ripples(ambient rings plus a ring per click),wanderers(tile-mode segmented bodies that wander and veer away from the cursor). - Nothing fits:
subjects.custom((ctx, t, s, env) => { … })(see "Write a subject"). Presets are starting points, not the menu.
- Existing image, SVG, video or logo:
- Choose the print mode. Edge glyphs or shape matching for clean outlines; braille for fine shading; dither for a printed, retro look; tiles for coloured subjects.
- Compose the layers. Each layer is
{ subject, mode, x, y, scale, depth, drift, speed, timeOffset, rotate };xandyare 0–1 of the screen. A layout that works: one hero below the input, one above it, two faint ones at the sides (depth0.4–0.6). Give repeats differentseedortimeOffsetvalues so they do not move in sync. - Palette, glyphs and finish.
palettelists 3–5 colours from dark to bright; built-ins arePALETTES.abyss / ember / mono / phosphor / amber / duo.backgroundmatches the page. Glyph sets:RAMPS.dense / soft / classic / binary / blocks / dots / katakana. Addcrtfor a terminal look and keep it subtle. Aimclearat the heading and input. - Wire it in. Put a full-screen
<canvas>behind the content (position: fixed; inset: 0), keep content above it, and give panels a translucent fill withbackdrop-filter. React notes are below. - Verify. Run
node scripts/check.mjs page.htmland look at the three images: is the subject recognisable, are the heading and input clear, is the phone view too busy, does reduced motion show one still frame? Completed-frame rate should track the configured fps; a stopped backdrop reports 0. Fields and CRT cost about 16–17 ms per frame; if frames drop, raisecell, lowerfps, or lower the field'sresolution.
Wiring
<canvas id="bd" style="position:fixed;inset:0;width:100%;height:100%"></canvas>
<script src="ascii-backdrop.js"></script>
<script>
const { subjects: S, PALETTES } = AsciiBackdrop;
const bd = AsciiBackdrop.create(document.getElementById('bd'), {
pal
Установить ascii-backdrop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ascii-backdrop?
Turn 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 背景' / '字符画动效'.
Как установить скилл ascii-backdrop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ascii-backdrop запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic