MotionScript

@motion-script/core


@motion-script/core / PixelateEffect

Interface: PixelateEffect

Defined in: attributes/shape/effects/implementations/pixelate.ts:18

After Effects-style Mosaic / pixelate.

blocks is the number of blocks across the node on each axis, exactly like AE's Mosaic "Horizontal Blocks" / "Vertical Blocks". A count equal to the node's pixel dimension on that axis leaves the image untouched (one block per pixel); lower counts give larger, coarser blocks. For a 1920×1080 image, { x: 1920, y: 1080 } is pristine and { x: 200, y: 180 } is heavily pixelated.

sharpColors mirrors AE's "Sharp Colors" checkbox: when true each block is a single solid colour with hard edges (nearest-neighbour); when false the block colours are smoothly interpolated between centres (linear).

Extends

Properties

blocks

blocks: Vector2

Defined in: attributes/shape/effects/implementations/pixelate.ts:21

Block count per axis — x horizontal, y vertical.


mode?

optional mode?: EffectMode

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

Inherited from

ModedEffect.mode


sharpColors

sharpColors: boolean

Defined in: attributes/shape/effects/implementations/pixelate.ts:23

AE "Sharp Colors": solid blocks (true) vs. smoothly blended (false).


type

type: "pixelate"

Defined in: attributes/shape/effects/implementations/pixelate.ts:19