Body, Mind & Soul — API Reference
    Preparing search index...

    A region behavior that renders a colored light effect constrained to the region polygon.

    Hierarchy

    • any
      • default
    Index
    • Returns default

    _bmsDarknessChangeHandler: ((evt: any) => void) | undefined
    _bmsDeleteBehaviorHookId: any
    _bmsDeleteRegionHookId: any
    _bmsLightSource: BmsRegionDarknessSource | BmsRegionLightSource | undefined
    _bmsUpdateHookId: any
    _bmsUpdateRegionHookId: any
    events: { [key: number]: (this: default, event: any) => Promise<void> } = ...
    LOCALIZATION_PREFIXES: string[] = ...
    • Parameters

      • system: any

      Returns void

    • Returns {
          alpha: any;
          animationIntensity: any;
          animationSpeed: any;
          animationType: any;
          color: any;
          darkness: any;
          luminosity: any;
          negative: any;
          walls: any;
      }

      • alpha: any

        Overall opacity of the coloration layer (0–1).

      • animationIntensity: any
      • animationSpeed: any
      • animationType: any

        Key into CONFIG.Canvas.lightAnimations, or "none".

      • color: any

        Hex color string for the emitted light.

      • darkness: any

        Scene darkness level activation range (mirrors core LightData.darkness). The light is active only when canvas.darknessLevel falls within [min, max].

      • luminosity: any

        1.0 = fully bright (darknessLevel → 0), 0.5 = dim (darknessLevel → 0.5), 0 = visual-only (no fog-of-war / vision illumination).

      • negative: any

        When true, use BmsRegionDarknessSource (negative polarity). When false, use BmsRegionLightSource (positive polarity).

      • walls: any

        When true, a ClockwiseSweepPolygon is cast from the region centroid so walls clip the lit area.

    • Convert legacy boolean darkness field to negative for backward compatibility.

      Parameters

      • source: any

      Returns any

    • Parameters

      Returns Promise<void>

    • Parameters

      Returns Promise<void>

    • Parameters

      Returns Promise<void>