- Preparing search index...
- The search index is not available
Illuminated
Constructors
constructor
- new DarkMask(options?): DarkMask
-
Parameters
-
options: Partial<Pick<DarkMask, "color" | "lights">> = {}
Methods
compute
- compute(width, height): void
-
Parameters
-
width: number
-
height: number
Returns void
getCanvas
- getCanvas(): HTMLCanvasElement
-
Returns HTMLCanvasElement
The canvas element.
render
- render(context): void
-
Parameters
-
context: CanvasRenderingContext2D
Returns void
Defines the dark layer which hides the dark area not illuminated by a set of lights.