MotionScript

@motion-script/core


@motion-script/core / PosterizeEffect

Interface: PosterizeEffect

Defined in: attributes/shape/effects/implementations/posterize.ts:13

After Effects-style Posterize.

Quantizes each colour channel into levels evenly-spaced brightness steps, so smooth gradients collapse into flat bands. levels is the number of tones per channel (matching AE's single "Level" parameter): 2 → pure two-tone per channel, higher values keep more detail. Below 2 there is nothing to band, so the effect is a no-op.

Extends

Properties

levels

levels: number

Defined in: attributes/shape/effects/implementations/posterize.ts:16

Number of brightness levels per channel (AE "Level", ≥ 2).


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


type

type: "posterize"

Defined in: attributes/shape/effects/implementations/posterize.ts:14