Skip to content

oldFilm

const oldFilm: EffectDefinition<EffectHandle, OldFilmOptions>

Defined in: effects/src/oldFilm.ts:41

Vintage-film look: sepia tint, grain, scratches, vignette — all in one pass via pixi-filters’ OldFilmFilter. The grain/scratch seed self-advances through the engine’s process scheduler (mirrors crt), so the noise shifts every frame, pauses with the owning scene, and time-scales with it. No caller-side step(dt) wiring required.

setIntensity routes through the inherited filter.alpha uniform — at 0 the underlying pass still runs but contributes no visible pixels, so fadeIn/fadeOut cross-fade the whole vintage look in lockstep instead of touching only one knob.

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.