Skip to content

motionBlur

const motionBlur: EffectDefinition<MotionBlurHandle, MotionBlurOptions>

Defined in: effects/src/motionBlur.ts:28

Directional motion blur via pixi-filters’ MotionBlurFilter — the streak effect for fast-moving sprites or hit-stop polish. The blur direction is a 2-D velocity vector in host-local pixels; magnitude controls strength.

setIntensity scales the configured velocity from zero (no blur) to its full magnitude, so fadeIn ramps the streak in cleanly. setVelocity rebases the full vector while preserving the current intensity ratio so an in-flight fade keeps animating against the new direction.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/effects.md.