Art styles

Editor character treatments

Eight distinct treatments, with color controlled separately. Switching styles clears earlier character sequences and custom text while preserving your selected motion.

ASCII

.:-=+*#%@

Dense

.,:;ris2h35SXGAH9&#BM@

Blocks

░▒▓█

Braille

⠁⠃⠇⡇⣇⣧⣷⣿

Linework

˙-═╪╬

Geometry

·◇◈◆▣■█

Halftone

Luminance-sized dots

Dither

·░▒▓█ · Fine stationary grain

ts
// After rendering an image with asciify-engine:
import { mountHover } from 'asciify-engine/hover';
const surface = mountHover(host, canvas, {
  fineDither: true, ditherStrength: 1,
  motion: 'relight', motionSpeed: 1, effect: 'trail', fontSize: 7
});
// Included in asciify-engine 1.2.0+; no separate download.
// Cleanup: surface.destroy();

Current render styles

Use the 24 render styles from asciify-engine/studio. Legacy alphabet and combined preset catalogs were removed in 4.1.0. Custom ASCII characters remain supported.

ts
import { createStudioRenderer } from 'asciify-engine/studio';
const renderer = createStudioRenderer(canvas, { style: 'braille', cellSize: 6 });
renderer.render(img);
// On unmount: renderer.destroy();
Current render styles
[
  "ascii",
  "blocks",
  "braille",
  "dots",
  "lines",
  "cross",
  "diagonal",
  "diamond",
  "mixed",
  "pixel",
  "mosaic",
  "lego",
  "voxel",
  "disco",
  "dither",
  "hex",
  "led",
  "cmyk",
  "stipple",
  "engraving",
  "crosshatch",
  "woodblock",
  "risograph",
  "pointillism"
]

Palette themes

PALETTE_THEMES provides named accent + bg color pairs inspired by popular editor themes.

dracula
monokai
nord
catppuccin
solarized
gruvbox
ts
import { PALETTE_THEMES, DEFAULT_OPTIONS } from 'asciify-engine';

const theme = PALETTE_THEMES.dracula;
const options = {
  ...DEFAULT_OPTIONS,
  accentColor: theme.accent, // '#bd93f9'
  colorMode: 'accent',
};