the camera to apply the transition to
transition parameters
CSS color value or Color instance for the transition fill
Optionaldirection?: "hide" | "reveal""hide" shrinks the visible area, "reveal" grows it
Optionalduration?: numbertransition duration in milliseconds
OptionalonComplete?: () => voidcallback when the transition finishes
an Ellipse or Polygon (unit-sized, centered at origin) defining the mask shape
the camera this effect is attached to
the transition fill color
transition direction
whether this effect has finished and should be removed
whether this effect should persist across camera/game resets (e.g. transition effects that span state changes)
optional callback when transition completes
current progress value (0 = fully covered, 1 = fully visible)
the mask shape template (unit-sized, centered at origin)
the tween controlling progress
Called when the effect is removed from the camera. Override to clean up resources.
Called after the scene renders to draw visual overlays (e.g. color fills for fading).
Called each frame to update the effect state (e.g. modify camera offset, countdown duration).
A camera effect that performs a mask-based scene transition. A shape (ellipse, polygon) is scaled from full-screen to zero (hide) or from zero to full-screen (reveal), with the area outside the shape filled with a solid color.
Example
Example