pixi-reels

MotionBlurOptions

pixi-reels


pixi-reels / index / MotionBlurOptions

Interface: MotionBlurOptions

Defined in: snapshot/SpinTextureCache.ts:19

Tuning for the baked motion-blur variant of a snapshot.

Properties#

PropertyTypeDescriptionDefined in
axis?"x" | "y"Smear axis — the reel’s travel direction. StaticSpinSymbol defaults this to the owning set’s orientation ('y' vertical, 'x' horizontal), so it is only worth setting to override that, or when calling the cache directly. The other axis is never blurred.snapshot/SpinTextureCache.ts:26
padding?numberExtra transparent pixels added on both sides of the cell along the axis so the smear isn’t clipped at the texture edge. Default: ceil(strength).snapshot/SpinTextureCache.ts:40
quality?numberBlurFilter quality (number of passes). Default: 4.snapshot/SpinTextureCache.ts:34
strength?numberBlur strength in pixels along the axis. Default: 20% of the cell’s span on that axis (cellHeight * 0.2 for 'y', cellWidth * 0.2 for 'x').snapshot/SpinTextureCache.ts:32