Class: PointLight

PIXI.lights.PointLight

new PIXI.lights.PointLight (color, brightness, radius) overrides

Name Type Attributes Default Description
color number <optional>
0xFFFFFF

The color of the light.

brightness number <optional>
1

The intensity of the light.

radius number <optional>
Infinity

The distance the light reaches. You will likely need to change the falloff of the light as well if you change this value. Infinity will use the entire viewport as the drawing surface.

Extends

Members

radius number

Radius

Inherited Properties

From class PIXI.lights.Light

brightness number inherited

Brightness

color number inherited

The color of the lighting.

falloff Array<number> inherited overrides

Falloff

lastLayer PIXI.layers.Layer inherited

Last layer

Default Value:
  • undefined

lightHeight number inherited overrides

Light height

shaderName string | null inherited

Shader name

Default Value:
  • undefined

useViewportQuad boolean readonly inherited overrides

Use Viewport Quad

Inherited Methods

From class PIXI.lights.Light

syncShader (renderer) void inherited

Sync Shader

Name Type Description
renderer PIXI.Renderer

Renderer