A helper class used by the Sight Layer to represent a source of vision or illumination.


new SightLayerSource(x, y, los, fov, dim, bright, color, alpha, darknessThreshold)

Name Type Description
x number

The x-coordinate of the source location

y number

The y-coordinate of the source location

los PIXI.Polygon

The computed line-of-sight polygon for the source

fov PIXI.Polygon

The computed field-of-view polygon for the source

dim number

The allowed radius of dim vision or illumination

bright number

The allowed radius of bright vision or illumination

color string

A tint color for the emitted light, if any

alpha number

An opacity for the emitted light, if any

darknessThreshold number

A level of darkness beyond which this light is active