Changelog
Notable changes to asciify-engine, newest first. Releases are published to npm from version tags.
4.33.0
Added
asciify-engine/headless(experimental):toAsciiGridconverts raw pixels to characters with no DOM, in Node, Deno, Bun, workers and edge runtimes;gridToText,gridToAnsi,gridToSvgandgridToHtmlwrite it out.'shape'mode matches each cell's strokes against every printable ASCII glyph (measured from DejaVu Sans Mono) and fills flat areas from a fine ramp of symbols;'tone'is the classic ramp. Measured against aalib.js, ascii.rest, three.js and others on photos it was not tuned on: seedocs/benchmarks/.dither: 'ordered'andpreviouskeep video calm frame to frame.ASCII_SYMBOLSis a punctuation-only set. 4.7 kB gzipped. Seereferences/headless.md.- Custom field effects (experimental):
defineFieldEffectwithdisplaceandshadeGLSL snippets, live params (tween them with GSAP or Motion), the eased pointer, and up to four stacked; pass them aseffectstomountGlyphFieldorupdate. A snippet that fails to compile is reported throughonErrorand the field draws without it. - Fields drawn in a worker (
worker: true, experimental): the canvas hands its drawing to an OffscreenCanvas in a worker running the same engine, so uploading frames, matching characters, the hover and every draw happen off the main thread; the page passes on layout, visibility, the pointer, media preferences, a video's frames (VideoFrames) or a live canvas's (bitmaps, one in flight at a time) and glyph atlases painted with its own fonts. In Chrome's trace of the main thread (node bench/screen.mjs, CPU time, 5 runs), a live 1080p field takes 0.38 to 0.49 ms a frame against 0.53 to 0.65 for a rebuild of 2025.unseen.co's ASCII pass, the idle page alone being 0.35 to 0.40. Custom effects, element-following clear zones and other interaction targets keep a field on the page.fieldWorkerSupported()on/field. contexton fields ('auto' | 'shared' | 'own', default'auto'): a field of about 720p or more in device pixels draws with a WebGL context of its own, straight to its canvas (two at most a page), so a hero copies nothing per frame; smaller fields keep the page's shared context. A context a field made is given back when it goes, and own contexts step their render scale down under load as the shared one does.- Live field sources:
live: truefor a canvas redrawn every frame (three.js, React Three Fiber, games, charts). The field uploads it each frame at the display's rate, andredraw()uploads it in the task that rendered it. Example:examples/three-live.ts. elementSource(experimental) on/kit: a live element as a field source, with its real pixels through HTML-in-Canvas where the browser has it (the element inside a<canvas layoutsubtree>) and a painted likeness elsewhere, kept in step as the element changes.supportsHtmlInCanvas()reports the API.sample: 'shape'on fields: each cell is read in 3 by 5 parts on the GPU and, among the characters near its tone, takes the one whose ink lies where the picture's light does, so type, line art and edges follow the picture instead of stepping by brightness. WithFIELD_PHOTO_CHARSETit is ahead of the studio WebGL heroes measured (2025.unseen.co's ASCII pass, webgl-ascii-hero) on photos, line art and type, close up and at a distance. Cells under 8 device pixels and non-glyph marks sample asarea.clear.pointeron field clear zones (andpointeron{ element }clears): how much of the pointer's response shows inside the zone, 0 to 1, default 0. The resting field stays quiet; the hover does not have to.imageToAsciiGridon/headless: a video, image or canvas straight to characters in a page or a worker. The frame is drawn down on a 2D canvas first, so only a small picture comes back to the CPU; withmode: 'tone'it reads 2 by 2 pixels a cell, averaged exactly. A frame held by the GPU (video) waits for the GPU to draw it down: usecreateAsciiGputhere.- Tone mode reads edges (on the CPU and the GPU): each cell's tone is taken a little steeper and pushed away from its neighbours' (a cell-wide unsharp mask), so strokes and outlines stay crisp. On the benchmark it is ahead of ASCII Magic and Devault on every picture at both distances, type up close included (0.881 to 0.889 against 0.875), and with
previoustone cells keep their character over a wider margin (3.2 % of cells change a frame on a slow pan). createAsciiGpu()andimageToAsciiGridGPUon/headless(experimental): the same conversion run on the GPU with WebGL2, every mode and option (shapeandtone, diffused, ordered or undithered,previous,color, light grounds, levels, contrast, gamma, charsets). Each cell is box-averaged from the frame's mip chain in linear light, levels are counted on the GPU, every cell is matched at once, and error diffusion is settled on the GPU in four passes (each cell taking the error its left and upper neighbours left in the pass before), which scores higher than walking it on the CPU. It works in a worker by default (the page hands over each frame as aVideoFrameorImageBitmap;{ worker: false }keeps it on the page): in Chrome's trace a 1080p frame to 160 columns costs the main thread 0.4 to 0.6 ms in every mode, against 2.6 to 4.2 ms for ASCII Magic over the same 15 runs, and scores 0.596 / 0.884 on the benchmark's photos (toAsciiGrid: 0.592 / 0.879).statsreports each frame's main-thread and total time. Without WebGL2, past the GPU's texture size or with more than 127 characters, it falls back toimageToAsciiGrid; where workers are blocked, or the worker has no WebGL2, it runs on the page; a lost context falls back too.- Headless is faster and calmer. Shape scores are three branch-free dot products a glyph against precomputed glyph tables; the matching loops were split into small functions the JavaScript engine keeps optimised, the perceptual curve became a table, and pixels are summed a row at a time: the same characters as before (a handful of cells differ by float rounding). With
previousand ordered dithering, cells keep their character over a wider margin: a slow pan changes 3.8 % of cells a frame (was 8 %), below every generator measured, with the moving picture as faithful (0.923 against 0.928). - Cheaper field frames. The pixel pass is compiled for the field's mark, with unused finishing passes left out (a software GPU draws 2.5 to 3 times as many frames); binds that change nothing are skipped; a moving source's frames are copied into the texture's storage rather than reallocating it (a 1080p upload went from 0.24 to 0.07 ms); uniforms are sent only when they change; the frame loop no longer copies or sorts arrays every frame.
poston fields: bloom, scanlines, grain, chromatic split and CRT curvature, all on the GPU and all off by default. Bloom comes from each character's own light at cell resolution, blurred through its mip chain, so it glows from the highlights without washing the characters out and costs a few reads a pixel.- No main-thread stalls from playing sources. A playing video or live canvas has its levels and hover scope measured from its own mip chain on the GPU, read back through a pixel buffer once a fence says the copy is done, so measuring never waits on the GPU (in the benchmark, frames that took up to 76 ms on the main thread at 1080p now take a few). Where float targets allow, a moving source's levels (a GPU histogram) and hover scope (keyed and feathered on the GPU) are measured without reading anything back at all. Its smaller mip levels are built only when a frame reads them. The read-back checks its framebuffer once, a field without a hover never reads its scope, and reads are at least 8 frames apart: a 1080p live field with the fluid hover costs about 0.9 ms of main thread a frame in the benchmark (was 3.9).
node bench/perf.mjsmeasures frame cost at 1080p and 4K with 12, 4 and 1 px cells and the fluid hover running. FIELD_PHOTO_CHARSETon/field: a 24-step charset ordered by measured ink, for photos, video and 3D in a field (withglyphScale: 1). Against studio WebGL heroes (2025.unseen.co's ASCII pass, webgl-ascii-hero) it holds more of the picture at both distances; seedocs/benchmarks/.toBlockGridon/headless: sub-cell art, with several pixels in each character.braille(2 by 4 dots),half(▀ ▄),quad(2 by 2 quadrants) andsextant(2 by 3, Unicode's Symbols for Legacy Computing). Withcolor, each cell is split into its lighter and darker pixels, which become its foreground and background colours (grid.backgrounds), as terminal image viewers draw it. Without colour, pixels are lit by tone, after levels, with error diffusion or ordered dithering.gridToAnsi,gridToSvgandgridToHtmlwrite the backgrounds, and colour output counts a sextant as one cell. A picture smaller than the grid's dots fills every one of them (it used to leave empty dot columns).gridsToAnimatedSvgon/headless: grids as one animated SVG played by CSS alone, with no script, so it plays where an SVG is shown as an image (a GitHub README, a docs page). It loops or plays once and holds the last frame, and holds the first frame underprefers-reduced-motion.- SVG output draws block elements as shapes. █ ▀ ▄ ▌ ▐, the eighths, quadrants and sextants become exact rectangles, and ░ ▒ ▓ become fills at 25, 50 and 75 %. Neighbouring runs are merged into one path per colour, so they tile with no seams or gaps in any font (
blocks: 'text'keeps them as characters).dark: { ink, background }follows the reader'sprefers-color-scheme, so one SVG suits a README in either theme, andtitlenames it (otherwise it isaria-hidden). - The
asciify-enginecommand (npx asciify-engine photo.jpg): pictures, animations, video and 3D models to ASCII, in the terminal or as SVG, HTML, text, ANSI and JSON, with every mode (shape,tone,braille,half,quad,sextant) and colour (24-bit or 256, honouringNO_COLOR/FORCE_COLOR). It fits the terminal, and plays animations, video (through ffmpeg;--webcamtoo) and models full-screen on the alternate screen, drawn in place with synchronised output so frames never tear. A model turns with the mouse, the arrow keys and the wheel, and draws nothing while it is still.-o loop.svgwrites an animated SVG, andtorusis the classic spinning donut.-o art.png,.gifor.mp4/.webmdraws the art as a picture to post anywhere. The characters come from glyphs rasterised from DejaVu Sans Mono, with blocks, shades and braille as exact shapes, in the picture's colours over any ground or a transparent one. An animation becomes an animated PNG, a GIF (gifenc) or a video (ffmpeg).- One run takes many files, each to
-o 'ascii/{name}.svg'or a folder, and carries on past any that fail. --cropand--flipwork on pictures and video,--startand--framepick where a video starts or one frame, and--thresholdsets where dots light in the sub-cell modes.- Video also plays from a URL or a pipe.
- Naming a format (
-f text) prints once and exits, even in a terminal, for scripts and agents.
Images decode with no dependencies. sharp or ffmpeg, if installed, read the formats beyond those. See
references/cli.md. - The agent skill asciifies attachments. An agent with the skill turns a picture, GIF, video or 3D model the user attaches or links into ASCII straight away, with no flag questions first. It replies with text, keeps an SVG (animated where the source moves), and offers a picture to post.
npm run test:skillruns every command the skill documents. Seereferences/convert-attachments.md. asciify-engine/model(experimental): 3D models to ASCII in any runtime.parseModel/loadModelread glTF 2.0 and GLB, OBJ and MTL, STL and PLY:- glTF: node transforms, instancing, base colours and textures, vertex colours, quantised and sparse accessors.
- PLY: point clouds and Gaussian splats.
- Every format: normals worked out with a crease angle where a file has none.
renderModeldraws on the CPU, through a visibility buffer with each pixel lit once (key, fill, rim and highlight). It draws outlines where surfaces overlap and at sharp creases, so shape mode finds the edges.modelToGridandmodelToGridsconvert in one call, with the light spread evenly over the character ramp.modelSourcedraws the same picture on the GPU into a canvas a glyph field reads as a live source: it turns, follows a drag or the pointer, holds still under reduced motion, and falls back to the CPU without WebGL2.shapeModelmakes a torus, knot, sphere, cube or icosahedron. Seereferences/model.md.asciify-engine/decode: image files to pixels with no dependencies, in any runtime (Node, Deno, Bun, workers and edge runtimes such as Cloudflare Workers, where sharp cannot run).decodeImagereads:- PNG and APNG, every colour type, bit depth and interlacing;
- JPEG, baseline and progressive, any chroma subsampling, CMYK, with EXIF orientation applied;
- GIF, every frame composited, with delays and loop count;
- BMP, PNM and QOI.
<asciify-field>on/field(defineAsciifyField()): a glyph field as an HTML element for any framework or none. Each attribute is a field option in kebab case (numbers, booleans, JSON for objects);srcis the source,aria-labelnames it, andworkerdraws it in a worker. Theoptionsproperty takes what attributes cannot hold (elements, effects, clear zones), children are laid over the field, andfieldis the mountedGlyphField. Changes are gathered into one update, a move within the page keeps the field, and removal destroys it. Defining is explicit, so importing does nothing and server rendering is safe.- STABILITY.md, SECURITY.md and CONTRIBUTING.md; visual baselines in CI (
npm run test:visual); a comparison benchmark with other ASCII renderers (bench/, report indocs/benchmarks/).
Looks changed
globe(sphere style): lit from the upper left with a soft terminator, round dots batched by tone, a faint body and a thin atmosphere, quieter latitude lines, andpointsjoined in order by great-circle arcs lifted off the surface with a pulse travelling along each; places glow in a soft halo. Same options.- Scene backgrounds (
swell,drift,haloand the other GPU presets): the pointer now shows inside their quiet middle and around the content they clear (clear.pointer: 0.8, new on field clear zones), and the lantern and trail answer more strongly, so the background visibly responds where people move. At rest they are unchanged. - With
previous(video, animation), a cell over nothing is always empty: it could keep a faint character, which left trails behind moving subjects. On the CPU and the GPU alike. - SVG text keeps its spacing when the SVG is placed inside an HTML page (spaces are written as no-break spaces; HTML ignores
xml:space). gridToSvgsizes cells from the grid'scellAspect(now recorded on every grid), so an SVG keeps the picture's proportions. It was 14 % too short for the default 1.93 cell. Grids made without one keep the old 0.6 em advance.- Otherwise none. Every visual baseline (19 kit components, presets and field marks, light and dark) is pixel-identical to 4.32.9;
sample: 'shape'andposthave baselines of their own. A playing video's levels are measured from its mip chain rather than a 64 px canvas copy, which can move them by a step or two.
4.32.9
- Package description, keywords and README rewritten to describe the engine as it is today, for npm and for agents (context7). No code changes.
4.32.8
- README: the sponsors section shows a live picture from
https://cdn.asciify.org/sponsors.svg(dark:sponsors-dark.svg), so the npm page shows current sponsors without a new release. No code changes.
4.32.7
shockwave: the click front is a smooth circle again. The 4.32.6 warp bent it into lobes that read as snaking; the smoky look now comes from the wind itself: the rim lights the field's own streaks, so it shows as thin diagonal wisps along a clean ring, breaking into arcs as it fades.
4.32.6the shockwave front spreads like smoke
shockwave's ring is no longer a circle. Its front is warped by a field of broad lumps in space (2–6 round the ring) that grows as it spreads and drifts downwind, so the outline billows and flattens in places instead of wobbling in place; the ring is carried a little downwind too. The rim's thickness varies round it, its leading edge is frayed letter by letter, and it is lit most where the wind's streaks are, so it reads as wisps of lit smoke. Matched to the reference by outline: deviation from a circle about 0.11 of the radius (reference 0.11) and the same share in modes 2–6. The lumps move continuously with the wind and the ring, so nothing shimmers; every press has the same character and only the pattern changes.
4.32.5shockwave matched to its reference by measurement
shockwave's ring has the reference's cross-section. The default tap lights a dense band of letters about 3% of the stage height across (25 px at 800 px tall): flat and bright for about 1.2% of the height behind the front, a crisp outer edge, a short ramp in from the inside. A broad, dimmer band of lit streaks trails it by 0.3–0.5 s and the disc between holds a faint fill, as in the reference. The radius follows0.436·H·(1 − e^(−(t + 0.09)/0.82))and the rim fades ase^(−(t/1.6)²); a few small breaks early, opening into arcs as it fades. Fitted to the reference's per-cell tone maps: radial-profile error 0.15 of the rim's peak (4.32.4: 0.42).- The resting wind is fainter. The streaks' idle tone is cut to about a third, so the ground sits as low as the reference's and text over it reads clearly.
4.32.4a finer shockwave ring
shockwave's ring is thin and crisp. The default tap now lights a narrow band of whole letters, about a row and a half, at a nearly even brightness with a short antialiased edge on both sides, instead of a soft three-row glow. It holds together through the first second with only small, irregular breaks, then frays into arcs from about 1.3 s as it fades. The streaks just inside it light faintly for the first second. Timing, radius curve and stacking are unchanged from 4.32.3.
4.32.3an organic shockwave ring
shockwave's tap is a ring of lit letters, not a drawn circle. The defaulttap: 'ring'lights the field's own fixed letters in a band two to three rows thick, slightly out of round, bright in clumps and thin in places (low-frequency noise round the ring plus each letter's grain), with the streaks inside lighting for a moment as it passes. It opens onr = 0.43·H·(1 − e^(−(t + 0.1)/0.85))(H the stage height) and fades ase^(−(t/2)²); as it fades its thin places open and it breaks into arcs that dissolve, gone by about 4 s. Every press has the same timing and character; only the patch pattern changes. Still one ring per press, no echoes or bounce; presses stack screen-blended and past four the oldest fades out quickly.tap: 'surface'is unchanged.- The
shockwavecursor glow is smeared along the wind. The brush is stretched along the streaks, with a longer tail downwind, so the cursor brightens the streaks near its path rather than a round spot.
4.32.2text-shaped clearing
- Backgrounds keep clear of text, not of an oval.
background(el, { clear })also takes rects in viewport CSS px, or a function that returns them (such as every line box of the copy fromRange.getClientRects()). The field quiets only right behind each rect and keeps flowing round and between the lines, bending a little away from their edges, so it fills the whole viewport instead of leaving a hole in the middle. Taps and the cursor's glow pass behind the text, quieted by the same map, never stopped at a hard edge. Tune it withclearPadding(px fully quiet round each rect, default 8),clearSoftness(px the quiet falls off over, default 28) andclearStrength(0–1, default 0.85). A function is read once per drawn frame and the field wakes on scroll, so return the same array until something moves; the map is rasterised on the CPU only when the rects change and sampled as one small texture. An element still clears a soft oval as before. - Glyph field
clear: { rects, padding, softness, strength, bend }. The same text-shaped map onmountGlyphFieldand every field-driven kit piece.
4.32.1one clean, consistent shockwave
shockwavetaps are a clean ring by default. One pressure front with the same shape and timing on every press: it expands fast and eases out (quint-out), a crisp rim with a sharp leading edge lights the streaks it passes and the streaks just behind it glow a moment, all faded out by 1.6 s. No reflections, secondary rings, ringing or bounce-back; the wind leans it a touch downwind as it opens but it never wobbles. Presses stack screen-blended, so overlaps brighten without burning out; past four at once the oldest fades out in 0.18 s.tap: 'surface'keeps the 4.32 wave over the wind as an opt-in. The background'stapoption now defaults to each preset's own (shockwave'ring',estuaryandcapillary'surface').shockwave's cursor speaks the same language. A soft round brush stamped evenly along the path brightens the streaks by how fast the pointer moves (speed smoothed, so the glow does not flicker with the event rate), never stacking past that level, and fades on the rings' clock. No more beads on fast moves or extra brightness from more pointer events.- Surface taps settle instead of bouncing.
estuaryandcapillarycalm the wave behind its front, so one front crosses the field and the drop does not keep ringing. Over a photo or video the wave has no pull back to rest (the source of the bounce), is calmed behind the front, damps faster on water, sky and ground, and the subject's outline and strong edges hold it back softly enough to wrap it without throwing echoes back.
4.32surface-aware taps, fish and kanji charsets, charset on every component, ocean accents, navPill, matched event-site pieces
- Two new character sets,
fishandkanji.CHARACTER_SETS.fishis the ocean's letters as a ramp (.'-,:;txoSX%#8@);CHARACTER_SETS.kanji(Kanji (Japanese)) is common Jōyō kanji from the lightest strokes to the heaviest (一二人小大中日本目田長間語書曜驚霧). Both are ordered by measured ink like every other set, and work in the Studio, the glyph field, backgrounds and every kit component.resolveCharset(name | chars)is exported from/coreand/kit. - Full-width glyphs. Kanji, kana and Hangul draw in square cells (
cellAspectrises to 1 for a mostly full-width set), set in the system Japanese faces (Hiragino Sans, Yu Gothic, Noto Sans JP) so they take their Japanese forms, and fitted evenly to the cell, never squeezed or clipped: in the glyph-field atlas, the Studio renderer and the core renderer. charseton every kit component. A named set or your own characters. Components that draw characters keep their mark (the ocean's tiles take kanji); components drawn in marks (ditherGradient,ditherImage,globe,morphField,cursorTrail's spray) switch to glyphs. A givencharsetis kept oversetGlobalLook;decode's scramble flips through it;thinkingandstreamTextroll through it. The ocean follows the global look's characters in its own tiles;fishandkanjicount as ramps, not words, so fields set in them take the look.ditherGradientredone. A printed glow: a smooth wash through a warm colour ramp (colors, default ember to cream on a dark ground, peach to flame on a light one;DITHER_RAMPS) under a fine screen of upright ticks that step through four strengths by an ordered dither and melt into the core. Slower, non-looping drift and breath; the first light leans to the pointer and a soft light trails it (pointer, default 0.4). Defaultbase0.14,follow0.05.- Field
ramp. A gradient map in ink colour mode: two to six stops the tone runs through instead of one ink. Thetickmark draws its wash in the ramp and its ticks a step up it. - Taps read the surface they land on. A click on
shockwave,estuaryorcapillarysends a damped 2D wave over the preset's own field instead of a fixed ring:shockwave's front is carried downwind, slows and buckles in dense gusts and lights the streaks it crosses;estuary's slows in the dense currents and lights them along their contours;capillary's runs along the veins. Over a photo or video, a press (andpulse()) on the glyph field sends the wave over the picture: fast over water, sky and smooth areas, slow on detail, held back by edges and the subject's outline so it wraps round the subject; water rings with glints, sky swells, busy ground shudders briefly, shaded by the photo's own light. The medium follows a video frame by frame.tap: 'ring'(background option and field setting) keeps the plain ring; the field also takestap: 'none'. Skipped under reduced motion. - Field:
glyphOrder: 'scatter'gives each cell one fixed character picked from the charset and lets the tone set its opacity, so a field of letters glows and fades like a lit screen of type (fades toward the ground in light and dark themes alike). A field of scattered letters takes the global look. - Field:
mark: 'inlay'sets each character into a gapped tile shaded by the tone, dark letters in light tiles; faint cells keep a speck of a character and empty ones a hairline grid. oceanredrawn: inlaid tiles in 15 px cells with a letter ramp (' .\',:;-toxXS%#8@'), sharks shaded from dark flanks to a light back, larger and bolder with wider pectoral fins and a stronger bend through turns; default cast three sharks, a hammerhead and two schools; a press's ring is a faint shimmer of specks.estuary,capillaryandshockwaveredrawn as a dark screen of scattered letters (a-zA-Z0-9, 5 × 10 px cells, opacity carrying the tone):estuaryis smoke-soft warped currents the cursor stirs and lights along their own contours, fading over two seconds;capillarya faint network of veins (warped cell walls with a soft shaded side) where the cursor and clicks light the veins and the light runs along them;shockwavewind streaks drifting in gusts, the cursor brightening them, a click sending one ring that eases to a stop and fades.oceancloser to its reference: sparse coloured letters, tinted tiles and white glints twinkle across the bodies (accents, on by default, or a share up to 0.3); tiled cells flicker through dense letters (X S % # 8 @) while the tile carries the tone; tiles are brighter; schools are faint one-cell dashes in wider, denser shoals (default five schools); bodies are read at each cell's centre so edges are crisp, and a small or distant shark keeps a solid run of tiles at any cell size (the floor on body, stalk and fins follows the cell).- Field:
accentsandshuffleformark: 'inlay';sample: 'point'reads the source at each cell's centre for crisp tiled shapes;cellSizecan go down to 1. - Field:
mark: 'tick'(a smooth wash under a fine screen of short upright ticks) andmark: 'bayer'(one gapped square a cell, empty, half or full by an ordered threshold, a faint dot in empty cells). - Field:
glyphOrder: 'text'keeps every letter and lets the tone set its opacity, so words fade softly toward the quiet edges instead of thinning out. globedraws its land as square dots set on the sphere (rows along the latitudes, crowding toward the rim), each sized and shaded by how squarely it faces you, with hairline latitude and longitude lines and a faint far side (dots: 'sphere', default;'field'keeps the old screen-grid look;spacing). It turns eastward as the Earth does, so a positivespeednow drifts the land to the right. Coastlines are read between the land map's cells, so they curve.morphField: stripes 5.5 px apart at 45° by default (11 px cells), bolder contrast, 4.2 s holds and 0.75 s morphs;gridlays a fine square-dot grid on the ground.ditherGradientdefaults to thetickmark and a wide, low glow from the bottom edge; lights takeaspectfor elliptical glows.ditherImagedefaults to thebayermark in 6 px cells.decodewithscramblenow scrambles the element's own HTML text, in its font and size, with no field: a front sweeps left to right into flickering letters of another alphabet (Han added toSCRAMBLE_SCRIPTS) and a trailing front sets the real letters down.cyclegreets through a list of words, each change sweeping from the old word to the new one in the new word's alphabet, holding forholdms.cursorTrailspray: square, hard-edged hatch patches snapped to the cells; the selection box is a hairline with a corner tag; tags are the ink's text on a translucent wash and hold before fading;ambientsprays patches, tags and now and then a box across the viewport on its own.wordmarkassemblegathers from finer pieces.- New in
asciify-engine/kit:navPill(nav, options), a soft pill behind a nav's links that slides to the hovered or focused link and fades when the pointer leaves (plain DOM;selector,color,padding,duration,to()). ocean: bodies lean toward a bluish grey (tint, default#8a96b8at 40%,falsefor the plain ink); brighter tiles with lighter letters set in them; shallower depth by default (depth0.35), so far sharks shrink less.- Field:
linePitch,lineWeightandsparklefor the line marks;textRepeat: 'row'sets one word of aglyphOrder: 'text'charset a row, repeated, rows taking the words in turn. Thetickmark's ticks are pairs of small square dots. morphFielddefaults to one bold stripe a 6 px cell whose width steps cell by cell, with a few twinkling specks;ditherGradient's glow has a full, flat core.globe's squares land on whole source pixels, so they read solid.cursorTrailspray patches vary cell by cell, so the hatching breaks into stepped segments.wordmarkassemblemoves one field cell at a time, left to right with a little jitter, by whole cells, so every frame shows crisp characters.
4.31ocean, and backgrounds you play with (estuary, capillary, shockwave)
- New in
asciify-engine/kit:ocean(el, options), an ocean seen from above drawn as characters: fish, sharks, hammerheads, manta rays, jellyfish and schools of small fish, each a procedural body that swims with a travelling wave, steers, wanders and schools, in depth layers. The cursor scatters small fish and sharks turn to investigate; a press sends a ripple. Optionscreatures,speed,density,depth,palette,background,interactive,ripples,edges,seed,layer,label; handleadd,remove,count. Shared GPU context, posters, still under reduced motion, paused off screen, deterministic for a seed. - New background presets you play with, each a simulation drawn into the field's source (every mark and charset, theme ink, faint by default, still under reduced motion, no frames once settled):
estuary(soft blotches the cursor stirs into swirls),capillary(a faint network of branching veins; new veins sprout toward the cursor and burst from a click, then fade) andshockwave(a click sends rings of characters outward, a front and two echoes; the cursor leaves gusts). UsesetPresetfor a mode switcher. - Skill: kit.md "Ocean" and "Interactive simulations", components.md
ascii-oceanandstir-grow-ripple, applying-asciify.md, scenario prompts 22 and 23.
4.30event-site pieces — morphField, globe, ditherGradient, ditherImage, scramble, assemble, spray
- New in
asciify-engine/kit:morphField(frames, including drawing functions and video, that morph into one another as hatched lines or any mark;next,go,onChange),ditherGradient(soft lights as a two-tone dither on the element's own background, leaning toward the pointer),globe(a globe of dots with land, ocean, graticule and far side, turning, draggable, withpointsandrotateTo; built-in Natural Earth land mask, 2.7 KB) andditherImage(an image in a brand's two tones as dither, pixels, dots or engraving, developing in when visible or with scroll). decode:scrambleflips the headline through other alphabets (SCRAMBLE_SCRIPTS, or your own) before landing, drawn by the field in the element's font;trigger: 'scroll'ties the decode to scroll position and idles while the page is still.wordmark:assemble: 'visible' | 'scroll'gathers the word out of scattered pieces as it comes into view.cursorTrail:style: 'spray'sprays patches of diagonal hatching round the path and draws a hatched box while dragging;readout: trueadds coordinate tags.- Field:
markAnglesets the screen angle of the line and print marks (default -35, as before);glyphOrder: 'text'reads the charset in order along each row, so repeated words stay legible as text-as-art. - Skill: kit.md "Event-site pieces" with an event-site header, hero and footer recipe; applying-asciify.md section 9b; scenario prompts 20 and 21.
4.29cursorTrail's trail is the field trail
cursorTrail({ style: 'trail' })now draws the same ink trail as a kit field'shover: 'trail'(the wordmark's), with the wordmark's glyphs, so the page cursor and a field's own trail read as one. Newtrail: { strength, radius, span, cell }sizes it to match a given field:spanis that field's shorter side andcellits longer side / 128, in CSS pixels. Still idle once the last character fades.wake,waterandsparkleare unchanged.InkTrailtakes an optionalspan, the cells its brush is measured against.
4.28cursorTrail, an ASCII cursor for the whole page
- New:
cursorTrail()inasciify-engine/kitputs a page-wide cursor trail on any site in one call:cursorTrail({ style: 'trail' | 'wake' | 'water' | 'sparkle', ink, charset, cellSize }). One fixed, click-through layer on the shared GPU context, mounted on the first pointer move and drawing only while something fades. Off on touch, under reduced motion and in hidden tabs; quiet over inputs, dialogs and[data-ascii-cursor-skip]. Returns a handle withupdate,clear,pause,playanddestroy.
4.27.1
- Fixed: kit components drawing an
<img>that usessrcset(compare, image accordion) took only the top-left part of the file, becausenaturalWidthis density-corrected while a source rectangle is read in file pixels.drawCovernow places the whole image, so the before/after slider lines up across the divider.
4.27Smooth dot looks and steady hover
- LED (Scoreboard), Dots and Stipple draw in one instanced GPU pass, like Pointillism, instead of thousands of Canvas 2D fills per frame: Scoreboard's hover costs 5 ms instead of 12, Lookbook goes from 93 to 120 fps. Output matches within the parity tolerance; frames mixing sub-pixel dots fall back to Canvas 2D exactly.
- Hover pacing steps down only when a look's own frames are late for several frames, ignores one-off stalls, and returns to full rate within a second (it used to wait up to 16 s). A new hover starts at full rate.
npm run bench:looksfails a look whose hover cost regresses past its recorded budget.
4.26.1
- Fixed: the pill's hover sparkle could read a character before the start of its set (progress slightly below zero) and throw.
4.26Studio off the main thread, live while scrolling
- Kit fields mount while the page scrolls instead of waiting for it to rest: within two viewports ahead, scroll direction first, at most two mounts per frame inside a 4 ms budget, with glyph atlases prewarmed at idle. A poster swaps for its canvas in the same frame the first frame is drawn, so a host is never blank, and paused fields keep their last frame.
- Fixed: the kit bundled its own copy of the field's shared context, so kit fields ran a second context and frame loop and were still held to the old 12-context cap. The build now fails if a kit chunk carries its own copy.
mountStudioandmountStudioMediadraw in workers onOffscreenCanvas. The page keeps the pointer and posts only input; frames come back asImageBitmaps and are shown without a copy, one per display frame. No first frame or hover is a long task on the page any more (a /looks card's first live frame was a 100 ms task).- Hover draws at the display's rate (120 Hz on ProMotion) for every look: workers take turns drawing frames (as many as the first frames' cost needs, up to three, within 6 megapixels of frames in all), each applying the same input so their hover state is identical; and Pointillism fills its dots on the GPU the way Chrome's canvas does (same polygons, same 4x multisampling). Pointillism hover: about 110 ms → 6 ms a frame. If the browser's own frames slow down under the raster load (CMYK's multiplied dots in a large frame), hover backs off to every second frame or less, so the page stays at the display's rate.
- Output is unchanged:
tests/studio-parity-browser.mjscompares every look, at rest and along a hover path, in light and dark, against the previous release; Pointillism matches within rounding. - The worker's script is its own chunk (
studio-worker.js, about 47 KB gzip), fetched with the first mount's media. WithoutOffscreenCanvas2D, or if the worker cannot start, the Studio draws on the page as before.createStudioRendereris unchanged and still draws on the calling thread. Public API unchanged.
4.25one shared context, bounded memory
- Every glyph field and kit surface on a page now draws through one shared WebGL2 context and one frame loop. Programs compile once, atlases are shared per glyphs/font/size, and one set of page listeners and observers serves every field. Output is pixel-identical.
- Static fields draw once. Ambient motion slows when frames are expensive, and render scale steps down (1 → 0.5) before frame rate drops. Mounts wait while the page scrolls.
- GPU memory is budgeted at 256 MB per page: off-screen kit fields fall back to posters, farthest first, and unused atlases are evicted. The shared context is released 3 s after the last field.
- Fixed: more than 12
lazy: falsefields fought over the context budget forever, growing memory without bound. Fixed:destroy()left a context on user canvases. The Studio surface shader no longer blocks the page (241 ms → 5 ms), and GIF frame extraction yields between frames.
4.24Lighter on the host page
- The kit is split per component: a host importing one component ships about 33 KB gzip instead of 99 KB. Existing imports are unchanged.
- Animating components draw once per frame (they drew twice), ambient motion is capped at 60 fps (30 on low-end devices or Save-Data) while interactions keep the full rate, and at most one field mounts per frame, so mounts never stack into a long task.
- Studio hover redraws at most 60 times a second and never takes more than half the main thread. Off-screen core video loops stop, zero-size fields stop, the backing store is capped at one 4K screen, and
destroy()removes every listener. - See
references/performance.mdin the skill for what the engine promises host apps.
4.23Dialogs always render, sharper motion cues, cleaner hovers
- Kit fields inside an open modal dialog always get a WebGL context: fields covered by the dialog give theirs up and come back when it closes. A released field hands its canvas back at once (Safari counts dead contexts toward its limit), and a field whose context is lost recovers onto a fresh canvas.
- Depth is fused from focus, haze, a horizon prior, texture and saliency with an edge-aware filter; Drift finds water (including non-blue seas by reflection), sky, cloud and falling water, and holds everything else still. The classic core renderer shares the same motion code. Analysis follows grid changes and reads the ungraded photo.
- Water settles cleanly; Ripple and Emboss draw their own rings on dark or transparent ground; glyph fields take
scope; video subjects update as the video plays; the hover catalog (HOVER_CONTROLS,DEFAULT_HOVER,resolveHover) is exported once. On the GPU path, Trail keeps the artwork's ground and Water moves whole cells.
4.22Photo-aware motion and finish
- A new set of still-image motions read the photo's own light, form, highlights, detail and estimated depth:
relight,sheen(specular sweep),glow(highlight bloom),shimmer(glints),parallax,push,focus,mist,current(drift) anddevelop. - Retired motions keep working through
DEPRECATED_STUDIO_MOTIONS: caustics → sheen, grain → shimmer, trace → relight, tidal/weave/breeze → current, reform/print/unfold → develop. - Optical finish: bloom is a wide soft glow around highlights, and grain is fine film grain weighted to the midtones.
- Animation presets are re-paired with the new motions, plus a new Depth study.
4.21Hovers that know the subject
- Six new hovers:
loupe,reveal,repel,tilt,hazeandbleed;scatter,elasticandrippleare refined, andrakeis deprecated (it playssilk). - Every hover takes
decay(how long it lingers) andscope: 'all' | 'subject' | 'outside': the subject comes from transparency, a drawn mask or an even plain ground, with a feathered edge; a busy full-bleed photo acts asall. - Hovers ease in, settle when the pointer stops, follow touch drags and stay off under reduced motion.
mountHovernow runs on the GPU in Chrome (a reserved word in its shader forced the 2D fallback).
4.20Sharper presets, 61 looks, twelve backgrounds
- Studio presets
ascii(Signature ASCII) andnight(Night signal) are retuned: finer 4px cells, brighter inks, lifted midtones and a faint glow. - The woodblock print style no longer leaves pale seams between cells.
aurorajoins the deprecated backgrounds (closest current preset:mesh), leaving twelve curated presets;halofits tall stages,causticsis calmer in small cards andwordFieldreads on small dark stages.- The skill's
looks.mdcovers 61 looks, adding Projects looks for album covers, editorial portraits, product heroes, posters, postcards, botanical plates, lookbooks, game box art, stickers and phone wallpapers, each with its export size and frame.
4.19A curated set of backgrounds
- New presets
halo,ripple,mesh,interference,constellationandcascade;caustics,contourandauroraare rebuilt on the GPU. All followsetGlobalLook, keep a quiet zone behind content and hold a still frame under reduced motion. cursor: falseturns pointer interaction off for every preset.mark: 'glyph' | 'dot'draws any preset in characters or dots;swellkeeps dots by default.- Dated presets (
dna,circuit,fire,grid,morph,noise,pulse,rain,silk,stars,terrain,veil,void,wave,weave,dune,etch,facet,moire,halftone) stay exported but are deprecated; the kit reference names the closest current preset for each. - Switching presets no longer leaves the previous preset's poster covering the new one.
pageDissolvedraws its settled blocks in one masked pass and snapshots at 1x on touch devices, so the wave stays light on phones.- The skill's
looks.mdnow covers 47 artwork looks, every render style, plus composed (blur, transparent, gradient) and finished (vignette, grain, bloom, scanlines) looks.
4.1824 render styles in every live field, artwork looks, smoother components
- Glyph fields draw the Studio's tile and print styles:
markacceptspixel,mosaic,lego,voxel,disco,dither,hex,led,cmyk,stipple,engraving,crosshatch,woodblock,risographandpointillism(seeFIELD_MARKS), one shader branch each. setGlobalLook({ style })re-skins every opted-in kit field in any of the 24 Studio styles (KIT_STYLES);charsetstill works alongside.- New background preset
swell: a halftone dot field in slow crossing waves, quiet behind the content, swelling under the pointer. - Reworked kit components:
blockChart(crisp glyph columns, scrubbing, morphing ranges),commandPalette(gliding selection, resolving rows, AI shimmer),toastStack(no outlines, layered stack, swipe to dismiss),pillandtabs(glyph status dots, gliding indicator, rolling figures),pageDissolve(one continuous wave),imageGenerate(one develop curve),accordion(one spring per panel, hover intent),pullRefresh(an iOS-sized ring),dropzone(a quiet ring that comes alive on drag-over). - The skill gains
references/looks.md: 22 artwork looks with prompts and settings for wallpapers, posters and hero art. - Studio defaults are paper and graphite instead of yellow; the default characters are Classic ASCII.
4.17A thinking label that rolls
thinkingdrops the dot bands and the dotted rule. A wave runs through the status label instead, each letter rolling up through glyphs and back in the label's own font; when the answer starts, the label rolls intoThought for 2s. New optionsroll,waveandglyphs;linesandruleare ignored.
4.16Smooth shading in every charset, rolling streamed text
- Glyph fields gain
blend(default'auto'): with nine or fewer characters, a photo or video mixes neighbouring characters in a fixed 4x4 pattern for the shades between them, so binary, dots and block sets shade like a full ramp. Drawn interface shapes stay crisp. It costs one comparison per cell and never shimmers. streamText(el, { transition: 'roll' })rolls each character up through glyphs into the crisp letter, like the odometer, with the caret on the front of the roll.
4.15Every charset at the same weight, inks from your tokens
setGlobalLook({ charset })measures the set's ink against classic ASCII and balances it: block and solid sets draw smaller glyphs and keep their detail, sets without light glyphs ease off, and faint sets draw larger, bolder glyphs. Tones are untouched.- Kit inks default to
--ascii-ink-strong, and with that unset, to the element's own text colour, so components follow the page's tokens instead of a fixed grey. skeletonreads its blocks' shapes from CSS (an image's radius; one bar per line of text, as wide as the words) and its shimmer is a continuous wave untilresolve().- A hidden (
display: none) field gives its WebGL context to fields on screen.
4.14Backgrounds in the kit, site-quality components
background(el, { preset })brings all 26 asciify.org backgrounds into the kit: drift, halftone, wordField and fluid on the GPU field, and 22 canvas presets (caustics, contour, facet, etch, moire, weave, veil, dune, wave, aurora, noise, silk, rain, stars, pulse, grid, voidWell, morph, fire, dna, terrain, circuit). Presets are separate imports, so a page pays only for the ones it uses, and each matches the /backgrounds page's rendering.- The site now runs on the kit. Every component demo on asciify.org is the kit itself, so what you see is what you install. Where the kit was weaker than the hand-built demos, the kit was raised to match.
- Performance and integration: fields mount lazily near the viewport and release far from it, a page-wide budget keeps at most 12 WebGL contexts live,
postershows a still for first paint and as the no-GPU fallback,setGlobalLook({ charset })re-skins every glyph field at once with a short sweep, andupdate({ ink, look })merges per instance. - New guide: applying-asciify.md teaches agents the house design: which component or background to use, text over fields, ink, radius, motion, performance and a finishing checklist.
4.13The kit, interface components in one call
asciify-engine/kit turns Asciify's interface components into short, customisable calls on the GPU field. Each one follows its element's size and border radius, takes ink from your CSS variables in light and dark, honours reduced motion, pauses off screen, leaves your HTML working without WebGL2, and cleans up with destroy().
import { beam, buttonLoading, statusOrb } from 'asciify-engine/kit';
const b = beam(card, { palette: 'colorful', mode: 'progress' });
b.progress(0.6); b.success();
const save = buttonLoading(saveButton, { text: 'Save' });
save.start('Saving'); await request; save.succeed('Saved');Thirty components ship in the kit: beam, decode, odometer, buttonLoading, statusOrb, skeleton, pill, tabs, imageGenerate, voiceOrb, commandPalette, slideToConfirm, likeBurst, blockChart, pageDissolve, swipeDeck, codeInput, toastStack, thinking, streamText, compare, accordion, dropzone, disintegrate, pullRefresh, fieldBackground, wordmark, asciiVideo, artPanel and pricingGlow. Unused components tree-shake away; each adds about 2–4 kB gzipped on top of a 3.5 kB shared core and the /field entry. See kit.md, and components.md for the prompt and snippet of every component.
4.12Halftone fields for interfaces
mark: 'dot' turns the GPU field into a halftone: one circle per cell, its area following the tone, crisp at any pixel ratio. The new drift scene draws a few broad, slow lobes; clear keeps the field quiet around an element so copy stays readable; pulse() sends a ring through the dots when your interface wants to answer an event.
const field = mountGlyphField(canvas, {
mark: 'dot', scene: 'drift', cellSize: 14, dotScale: 0.64,
ink: '#9a988f', background: 'transparent',
clear: { element: document.querySelector('#hero .copy') },
});
saveButton.addEventListener('click', () => field.pulse({ element: saveButton }));Also in 4.12:
- Even quality across styles. Character styles stretch each image's tones to its own range and pick glyphs by measured ink, so dark or flat images keep their subject in every character set and look. Set
color.levels: 'none'for the previous linear mapping. Adaptive resolution only steps down while frames are genuinely over budget, and returns to full detail when motion settles. - Faster fields. Image sources decode off the main thread and are scaled to what the cells can show; scene maths runs once per cell; shaders compile without blocking.
readyresolves for fields mounted off screen, and a shader link failure is reported throughonError. - 4.12.1: fields size themselves from layout, so a parent's transform (a dialog scaling open) no longer stretches them.
- 31 ready-made components in the agent skill (components.md): controls, feedback, AI states, transitions, data, media, text and pages, each with the prompt and the reference code. See them running at asciify.org/components.
4.11GPU glyph fields
asciify-engine/field renders an image, a video or generated motion as characters entirely on the GPU, with three cursor responses: trail (the Asciify Trail, the same ink field as the studio's, now on the GPU), fluid (an incompressible ink-in-water wake that curls into eddies) and lantern (a soft light with no distortion). Use it for full-bleed heroes and brand fields that must stay smooth while people move over them. Characters are drawn texel for texel from a glyph atlas, so any font and any charset work, including your own name.
import { mountGlyphField } from 'asciify-engine/field';
const field = mountGlyphField(canvas, {
source: '/media/hero.mp4',
charset: ' .,:-+ACME',
color: 'ink', ink: '#f3ba32', shade: 1,
fluid: { radius: 0.08, refraction: 0.03, glow: 0.6 },
});
// field.update({ charset: ' .:ASCIIFY' }); field.destroy();It needs WebGL2 on a GPU: isGlyphFieldSupported() is false without it or on software WebGL, and slow devices step down to 1× pixels and then still ambient motion. Keep a poster or the /studio renderer as the fallback. A still field stops drawing once its wake settles. Measured in Playwright Chromium on an Apple M4 Pro at 1440 × 900 and device pixel ratio 2, a full-viewport field held 120 fps (9 ms 95th-percentile frame) under continuous pointer movement; measure your own targets. See the field guide and brand field example. It is a separate entry: the root, /core, /hover and /studio never load it.
4.10More life for still images
Three additional pointer responses—Lens wake, Smudge and Ripple rings—and four autonomous motions—Relight, Shimmer, Breeze and Unfold—bring the catalogs to 14 each, plus Off. Source images, art styles and colors remain yours. Six editable combinations in STUDIO_ANIMATION_PRESETS help choose a starting point without replacing your look.
import { STUDIO_ANIMATION_PRESETS } from 'asciify-engine/studio';
const preset = STUDIO_ANIMATION_PRESETS.find(p => p.id === 'quiet-light')!;
player.update({ motion: preset.motion, hover: preset.hover });Use one Studio player for live rendering, settings persistence and independent animation export. See the complete interaction guide and living-image helper. CPU simulation is bounded and wakes settle; device frame rates and visual fidelity still require browser measurement. Existing defaults and saved IDs are unchanged.
4.9Print and illustration
Stipple, Engraving, Crosshatch, Woodblock, Risograph and Pointillism add distinct print geometry to /studio. All share hover, living-image motion, masks, source shaping, saved settings and exports. Tune coverage, mark weight, angle, repeatable texture, light/dark ink polarity and two-ink registration with print. Use STUDIO_PRINT_STYLES for labels and the print guide for a live still-image example, bounds and performance limits. ASCII remains the default.
4.8Layered projects
Compose up to eight image, video, GIF or text layers with independent styles, motion, hover, placement, opacity and blend modes. mountStudioProject owns one playback loop and a shared cell/raster budget; hidden and unchanged layers skip work. Root/core/hover entry points remain unchanged.
import { mountStudioProject } from 'asciify-engine/studio';
const player = await mountStudioProject(canvas, { layers: [
{ id: 'photo', source: 'image', settings: { motion: { type: 'parallax' } } },
{ id: 'title', source: 'text', placement: { width: .8, height: .25 },
settings: { ink: '#b3ed82', hover: { effect: 'elastic' } } },
] }, { image: '/your-photo.webp', text: { text: 'HELLO', font: 'Small' } });
player.updateLayer('photo', { settings: { hover: { effect: 'water' } } });
// player.destroy() on unmountexportStudioProject owns independent export media, so it does not disturb the live preview. Save layouts with serializeStudioProject, retain/rebind source assets separately, and restore with parseStudioProject. See the layered-project guide and typed live/export example for geometry, picking, ownership, cancellation and performance limits. This is an optional local composition API, not a claim of complete competitor-style or FPS parity.
4.7Ordered source shaping
Combine up to eight source transformations before ASCII, dither or any Studio style: Twirl, Pinch, Spherize, Ripple, Zigzag, Shear, Smudge, Polar and Fragment. Edit strength, position and radius, plus direction/frequency where applicable. Reorder or disable stages without losing their settings; choose extended or transparent edges. Generate controls from STUDIO_WARPS and MAX_STUDIO_WARPS.
player.update({
warps: [{type:'sphere',amount:.3,radius:.7}, {type:'shear',amount:.15,angle:25}],
warpEdge:'clamp',
motion:{type:'parallax',amount:.5},
});The stack is static shaping; motion and pointer hover remain independent. Coordinate maps are cached across video frames, and stills reuse shaped pixels during interaction. Empty stacks are free of additional pixel work. Defaults and root/core/hover behavior remain unchanged. Dither motion also gains alpha-correct interpolation at transparent edges. See parameters, order, persistence/export and measured CPU tradeoffs.
4.6Channel curves and source noise reduction
Studio adds editable RGB, red, green and blue curves, with up to 16 control points each, plus optional edge-preserving source noise reduction. They apply before every render style and travel with saved settings and exports. Defaults preserve existing output. Curves use small cached lookups; still images reuse filtered pixels while hover/motion run. Dense video filtering is an explicit CPU tradeoff.
player.update({color:{
denoise:.25,
curves:{rgb:[[0,0],[.25,.2],[.75,.8],[1,1]]},
}});
const settings = player.settings; // detached snapshot for save/exportSee settings, normalization, processing order and performance guidance. Curves are local source controls, not another art-style alias or AI restoration.
4.5Tonal detail and blue-noise dithering
Studio adds dither.algorithm: 'blue-noise': a stable precomputed dispersed pattern with no runtime generation or asset download. noise remains white noise. Choose the algorithm from DITHER_ALGORITHMS; drift and shimmer remain independently controlled.
Recover usable shadow/highlight separation before conversion with color.gamma, shadows, highlights, blackPoint and whitePoint. All Studio styles share these controls and retain neutral defaults. They are a bounded monotone tonal curve, not arbitrary per-channel curve editing. See exact ranges, sampling budgets and a live-project example.
4.4More ways to bring photos to life
Eleven pointer interactions and ten autonomous motions, plus Off. Emboss presses paired light and shadow into a fixed character grid; Elastic stores directional momentum and springs back; Rake combs the source into alternating ribbons. Parallax, Woven Flow, Print Shift and Contour Light join the still-image motions. Contour Light follows the actual source tones.
import { STUDIO_HOVERS, STUDIO_MOTIONS } from 'asciify-engine/studio';
// value / label / group / description: use these to build a complete picker.
player.update({
motion: { type: 'parallax', speed: 1, amount: .7 },
hover: { effect: 'elastic', radius: .45, strength: .65 },
});All motion choices repeat every 12 / speed seconds. Still exports preserve the selected preview phase; animated exports include motion without pointer events. Grain, dust, glitch, animated dither and source video have separate timing. No external AI service is used. See effect integration.
4.3.1Studio correctness and performance
Stationary compositions are reused during animated finishing. Hidden dither settings and zero-strength motion no longer keep still previews awake. Ordered dithering uses cached thresholds with byte-identical output; Scatter caches its spatial noise. CMYK now responds to tonal hovers and still motion. For a selected PNG/JPEG frame after changing motion speed, pass time: player.time and motionTime: player.motionTime to exportStudio. See the packaged project-integration skill reference for a live component and independent image/video export.
4.3More motion for still images
Studio includes six still-image motions plus Off: Caustics, Slow Current, Reveal & Reform, Sheen, Tidal Rings, and Living Grain. Sheen and Living Grain preserve the grid. Motion speed and strength are adjustable. Hover adds Magnetic Pull and Scatter alongside Trail, Water, Contour, Dissolve, Silk, and Vortex. Use hover.effect in Studio or effect in the optional /hover module; configure radius and strength separately. Existing defaults remain unchanged.
4.2Studio detail controls
The optional asciify-engine/studio entry includes 24 render styles, including hex mosaic, LED matrix and CMYK print. Dither supports pixel scale, custom palettes, RGB/luminance mapping, pattern speed and direction. Use studioGrid to report effective density and opt into a larger maxCells budget for one-pixel output; defaults stay performance-bounded. Mounts expose setAdaptive for an explicit detail/performance choice. Still-image motion has amount, and finishing adds rgbSplit and sharpen (WebGL required). See the complete controls and export guidance. No AI service or server upload is introduced.
4.1.0Current catalogs only
This release removes CHARSETS, ART_STYLE_PRESETS, CHARSET_SEQUENCES, LIVING_STYLE_PRESETS, and their key types. Although numbered 4.1.0 at the maintainer's request, these removals are breaking changes. Update imports before upgrading. Removed core artStyle shortcuts throw with migration guidance.
Use STUDIO_STYLES from asciify-engine/studio for the 15 current render styles: ASCII, Braille, Dots, Lines, Blocks, Dither, Cross, Diagonal, Diamond, Mixed, Pixel, Mosaic, Lego, Voxel and Disco. Set settings.style with mountStudio / createStudioRenderer; these styles are actual rendering methods, not character ramps. Core media APIs remain ASCII-first.
Use CHARACTER_SETS.standard.chars (or another curated entry) from root or /core for an ASCII ramp; custom options.charset and charsetFrames arrays remain supported. Use explicit options.colorMode, renderMode, and hover/motion settings instead of the removed combined presets. No legacy catalog has been moved to a hidden compatibility bundle.
4.0Optional background templates
Procedural backgrounds no longer ship in the npm package or root exports. Download only the template you want from the background gallery; its copied code and lifecycle belong to your application. Existing 3.x applications can remain pinned while migrating. /backgrounds, asciiBackground, BACKGROUND_TYPES, and procedural render*Background exports are removed; text/media background APIs remain. The default import and /core now expose the same media-first API. CHARACTER_SETS is the lightweight curated catalog shared by the hero and editor.
3.0Still-image motion
Use motion: { type: 'current', speed: 1 } with /studio, motion: 'current' with /hover, or animationStyle: 'current' with core. Choose one motion owner. The curated set is Off (none), Caustics (caustics, fixed-grid light), Slow Current (current, local flow), and Reveal & Reform (reform, staggered dissolve). All loop every 12 / speed seconds and preserve your chosen colors. Breathe, Fire, Rainbow and other old ambient motion IDs are retired. Old Studio presets restore with motion Off; update application-owned core options explicitly. Hover effects and optical finishes are independent. See the 3.0 migration guide.
2.0.1Size and export fixes
studioGrid exposes the effective grid and minimum cell size for a bounded preview. Dither uses dither.scale; other styles use cellSize. Pass time to exportStudio for a PNG/JPEG of the current frame. Animation exports continue to start at zero. See the Studio guide for the shared preview/export density contract.
2.xStudio composition tools
The asciify-engine/studio entry adds a reusable composition pipeline: alternate render styles, palette dithering, crop and masks, source/blurred/gradient backdrops, combined optical effects, saved looks, text fonts, and PNG/JPG/GIF/MP4/WebM export. Existing ASCII defaults and /core and /hover imports stay unchanged. Fonts and video encoders load on demand.
import { mountStudio } from 'asciify-engine/studio';
const studio = await mountStudio(canvas, '/your-video.mp4', {
settings: {
style: 'ascii',
backdrop: { mode: 'blurred', opacity: 0.4 },
},
});
studio.update({ hover: { effect: 'water', radius: 0.35 } });
// On unmount:
studio.destroy();See the Studio API guide for complete settings, import/export, media ownership, browser requirements, and performance budgets.
1.3.0Hero finish
Version 1.3.0 adds text-shaped charcoal cutouts (textMask), peripheral scanline/fringe control (edgeEffect), fixed accent ink, and velocity-driven Trail source flow. These additions ship in npm 1.3.0. Upgrade older applications before using them. See the complete API, layering example, lifecycle, and fallback limits.
1.2.0Website hovers
Since 1.2.0, import the enhanced interactions through asciify-engine/hover. No extra download is needed. This optional entry leaves root and /core browser bundles unchanged.
import { asciify } from 'asciify-engine/core';
import { mountHover } from 'asciify-engine/hover';
// <div id="art" style="position:relative;width:fit-content">
// <canvas id="ascii" style="display:block"></canvas>
// </div>
const host = document.querySelector('#art');
const canvas = document.querySelector('#ascii');
const charset = ' .:-=+*#%@';
const stop = await asciify('/image.jpg', canvas, {
fontSize: 7,
options: { charset, charAspect: 0.58, hoverStrength: 0, animationStyle: 'none' },
});
const hover = mountHover(host, canvas, {
effect: 'trail', strength: 0.55, radius: 0.2,
fontSize: 7, charAspect: 0.58, charset,
});
// Switch: hover.update({ effect: 'water' });
// Redraw a still: hover.invalidate();
// On unmount: hover.destroy(); stop();Effects: Trail, Water, Contour, Dissolve, Silk, Vortex, Magnetic Pull, Scatter, Emboss, Elastic, Rake, and none. Inspect STUDIO_HOVERS for typed IDs and behavior groups (4.4+). Pass effect to mountHover, rather than passing these names to the legacy engine hoverEffect option. Keep engine hover and animation disabled to avoid stacking two renderers. Match fontSize, charAspect, charSpacing, charset, customText, and dot settings to the backing canvas.
For video/GIF, set animated: true, fps: 24 and coordinate paused with playback. For a still, optional motion: 'caustics' | 'current' | 'reform' (or the other IDs in STUDIO_MOTIONS) adds living-image motion; fineDither: true enables stationary grain. mountStudioHover remains an alias for the existing standalone integration. The module observes reduced motion, sleeps when idle/offscreen, and uses Canvas 2D when WebGL is unavailable (simpler spatial refraction). Call destroy() on unmount; use hover.canvas for overlay layering or snapshots.
See the complete integration and lifecycle guide. A standalone ES module remains available for projects without a bundler.
Earlier notes
waveField now animates the supplied media rather than replacing it with a generated scene. For the previous procedural scene, download the Wave template from https://asciify.org/backgrounds.