@motion-script/core / BitCrushEffect
Interface: BitCrushEffect
Defined in: attributes/shape/effects/implementations/bit-crush.ts:26
Colour-depth reduction: either quantize each channel to bits, or snap every
pixel to its nearest entry in a fixed hardware palette.
The distinction from posterize and dither is which colours survive.
Posterize keeps an evenly-spaced grid per channel; this can instead force an
arbitrary, uneven, historically-specific set — which is what actually makes
something look like a Game Boy rather than merely low-colour.
Pairs naturally with dither: quantize here, and let an ordered dither carry
the error so gradients survive the palette cut.
Extends
Properties
amount
amount:
number
Defined in: attributes/shape/effects/implementations/bit-crush.ts:33
0–1 blend between the original colour and the crushed one.
bits
bits:
number
Defined in: attributes/shape/effects/implementations/bit-crush.ts:29
Bits per channel when palette is 'none' (1–8).
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
palette
palette:
BitCrushPalette
Defined in: attributes/shape/effects/implementations/bit-crush.ts:31
Fixed palette to snap to, or 'none' to use bits.
type
type:
"bitCrush"
Defined in: attributes/shape/effects/implementations/bit-crush.ts:27