Skip to content

PixelateHandle

Defined in: effects/src/handles.ts:44

Handle returned by pixelate.

  • EffectHandle

readonly enabled: boolean

Defined in: renderer/dist/api-By3lEj26.d.ts:108

Whether the effect is currently enabled.

EffectHandle.enabled

fadeIn(duration): Process

Defined in: renderer/dist/api-By3lEj26.d.ts:112

Tween the effect’s primary intensity 0 → 1 over duration seconds.

number

Process

EffectHandle.fadeIn


fadeOut(duration): Process

Defined in: renderer/dist/api-By3lEj26.d.ts:114

Tween the effect’s primary intensity → 0 over duration seconds.

number

Process

EffectHandle.fadeOut


remove(): void

Defined in: renderer/dist/api-By3lEj26.d.ts:104

Remove the effect immediately. Idempotent.

void

EffectHandle.remove


run(p): Process

Defined in: renderer/dist/api-By3lEj26.d.ts:126

Schedule a Process scoped to this effect’s lifetime. The process is routed through the same ScopedProcessQueue the effect’s fades use — pauses with the owning scene, time-scales with it, and is cancelled automatically when the effect is removed.

Useful for factories that need timed work (e.g. a one-shot trigger ramp, a uniform animator) without asking the caller to wire step(dt). The returned Process can be cancelled early; otherwise it tears down with the effect.

Process

Process

EffectHandle.run


setEnabled(on): void

Defined in: renderer/dist/api-By3lEj26.d.ts:106

Toggle the effect without removing it. Flips the underlying filter’s .enabled.

boolean

void

EffectHandle.setEnabled


setIntensity(value): void

Defined in: renderer/dist/api-By3lEj26.d.ts:110

Set the effect’s primary intensity. Values are clamped to 0–1.

number

void

EffectHandle.setIntensity


setSize(value): void

Defined in: effects/src/handles.ts:45

number

void