Skip to content
party.js logoparty.js logo

ReferenceCustom effectsInterface

CreateLightingOptions

The strength of ambient and directional light.

Options for createLighting().

ambientoptionalnumberdefault0.5

The lightness factor for a particle seen edge-on to the light.

peakoptionalnumberdefault1

The lightness factor for a particle facing the light directly.