MotionScript

@motion-script/core


@motion-script/core / AsciiEffect

Interface: AsciiEffect

Defined in: attributes/shape/effects/implementations/ascii.ts:48

ASCII art: the content is divided into a grid of cells, each cell's tone is matched to a glyph, and that glyph is drawn in its place.

The glyphs come from a texture baked once per charset/font/size — the first effect to use the renderer's resource hook.

Extends

Properties

background

background: Color

Defined in: attributes/shape/effects/implementations/ascii.ts:59

Colour behind the glyphs. Fully transparent leaves the backdrop showing.


charset

charset: string

Defined in: attributes/shape/effects/implementations/ascii.ts:53

A named ramp, or a custom string ordered least-ink-first.


colored

colored: boolean

Defined in: attributes/shape/effects/implementations/ascii.ts:61

Tint each glyph with its own cell's colour instead of using ink.


fontFamily

fontFamily: string

Defined in: attributes/shape/effects/implementations/ascii.ts:55

Family the glyphs are baked in. Best results from a monospace face.


ink

ink: Color

Defined in: attributes/shape/effects/implementations/ascii.ts:57

Colour of the glyphs when colored is false.


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


size

size: number

Defined in: attributes/shape/effects/implementations/ascii.ts:51

Cell size in px — the width of one character.


type

type: "ascii"

Defined in: attributes/shape/effects/implementations/ascii.ts:49