Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

bg

Shows or clears the stage background image.

{ "type": "bg", "value": "street", "transition": "fade", "duration": 0.5 }
[bg street fade 0.5]
[bg clear]

Usually you need

FieldTypeDefaultEffect
valuestring or null—Image name under backgrounds/; null clears
transitiontransition kindfade if omittedEnter / leave
durationnumber ≥ 00.5 if omitted with default fadeSeconds

All fields

FieldTypeDefaultEffect
valuestring or null—Image / clear
transition / transition_in / transition_outkindomit → fadeKinds: instant, fade, slide_*
transition_duration / durationnumber ≥ 0omit → 0.5Seconds
opacitynumber 0–11 when omitted on a showPlate alpha baseline (binds compose on top)
modulatecolor stringwhite when omitted on a showTint baseline
visiblebooltrue when omitted on a showShow/hide baseline
shaderstring or object or nullabsent = keep; null = clearStem under shaders/, or an object with name / params / target / pass / margin — Effects
shader_paramsobject—Uniforms when setting shader
bindobject—image, opacity, modulate, visible, plus shader:…
interactionobject—hooks.on_show / on_hide / on_change
whenexpression—Skip when falsy

Bind notes

  • bind.image uses the same stems as value (files under backgrounds/). Swaps are instant — use an explicit bg command when you want a fade.
  • Bind look keys compose with the command baselines above (opacity / modulate / visible).
  • While a model background or an active background pack is showing, image / opacity / modulate / visible binds are ignored (shader:… still applies when a shader is set).

Clearing the image also clears shader and bind. Guide: Backgrounds, Transitions, Binds, Shaders.