Art Styles
13 built-in presets via ART_STYLE_PRESETS. Each bundles a render mode, character set, and color mode. Apply with the artStyle shorthand or spread into options.
Core presets
Standard density ramp. Clean, universally readable ASCII aesthetic.
Colored dot circles in dots renderMode. Great for vibrant photos.
Alphabet characters with pixel-accurate color. Dense, textural.
Box-drawing characters with accent color. Technical, hacker aesthetic.
Full 70-char density ramp for maximum tonal range and fine detail.
Classic charset with matrix-green color mode. Retro terminal look.
Extended presets
Filled block elements ▪◾◼■█ — bold, low-detail shapes.
Dash/em-dash ramp — minimalist typographic style.
Concentric circle chars ·:∘○ with accent-color highlight.
Full 256-char braille block. Ultra-dense tonal range with a printed feel.
Half-width katakana. Matrix / cyberpunk / anime aesthetic.
Music notation symbols ♩♪♫♬♭♮♯. Playful, low density output.
Block emoji grid — full-color mosaic, best with larger fontSize.
import { ART_STYLE_PRESETS, DEFAULT_OPTIONS } from 'asciify-engine';
// Spread a preset into options
const options = { ...DEFAULT_OPTIONS, ...ART_STYLE_PRESETS.braille };
// Or pass the name directly via the artStyle shorthand
await asciify(img, canvas, { artStyle: 'katakana' });
await asciify(img, canvas, { artStyle: 'particles' });
// All preset names:
// 'classic' | 'particles' | 'letters' | 'claudeCode' | 'art'
// 'terminal' | 'box' | 'lines' | 'braille' | 'katakana'
// 'musical' | 'emoji' | 'circles'Palette themes
PALETTE_THEMES provides named accent + bg color pairs inspired by popular editor themes.
import { PALETTE_THEMES, DEFAULT_OPTIONS } from 'asciify-engine';
const theme = PALETTE_THEMES.dracula;
const options = {
...DEFAULT_OPTIONS,
accentColor: theme.accent, // '#bd93f9'
colorMode: 'accent',
};