MotionScript

@motion-script/core


@motion-script/core / AsciiOptions

Interface: AsciiOptions

Defined in: attributes/shape/effects/chain.ts:338

ASCII art from a glyph grid. Scalar shorthand sets size.

Extends

Properties

background?

optional background?: Color

Defined in: attributes/shape/effects/chain.ts:348

Colour behind the glyphs (default 'black'; use 'transparent' to overlay).


charset?

optional charset?: string

Defined in: attributes/shape/effects/chain.ts:342

A named ramp, or a custom string ordered most-ink-first (default 'standard').


colored?

optional colored?: boolean

Defined in: attributes/shape/effects/chain.ts:350

Tint each glyph with its own cell's colour instead of using ink (default false).


fontFamily?

optional fontFamily?: string

Defined in: attributes/shape/effects/chain.ts:344

Family the glyphs are baked in; a monospace face reads best (default 'monospace').


ink?

optional ink?: Color

Defined in: attributes/shape/effects/chain.ts:346

Glyph colour when colored is false (default 'white').


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

EffectOptions.mode


size?

optional size?: number

Defined in: attributes/shape/effects/chain.ts:340

Cell size in pixels — the width of one character (default 12).