WeatherLayer

WeatherLayer

A CanvasLayer for displaying visual effects like weather, transitions, flashes, or more

Constructor

new WeatherLayer()

Members

(static) layerOptions

emitters :Array.<PIXI.particles.Emitter>

Track the set of particle Emitter instances which are active within this Scene.

Type:
  • Array.<PIXI.particles.Emitter>

weather :PIXI.Container

The weather overlay container

Type:
  • PIXI.Container

weatherEffect :SpecialEffect

The currently active weather effect

Type:

weatherOcclusionFilter :AbstractBaseMaskFilter

An occlusion filter that prevents weather from being displayed in certain regions

Type:

Methods

(async) draw()

drawWeather() → {PIXI.Container|null}

Draw the weather container.

Returns:

The weather container, or null if no effect is present

Type
PIXI.Container | null

(async) tearDown()