Motion
Get Motion

ReferenceLayersLight and particles

Light rays

Shafts of light falling from a point, shimmering.

Kind
Layer · Light and particles
Script name
rays
Cost to draw
Moderate
Blend
Light costs no extra pass
The Light rays layer with its default settings
The Light rays layer with its default settings.

Rays

SettingKindStarts atRange and notes
Colourcolourcolour#caecff–
Source left and rightoriginXnumber30%-50% to 150%
Source up and downoriginYnumber-20%-50% to 150%
Spreadspreadnumber45%5% to 100%
Brightnessbrightnessnumber55%0% to 200%
Reachlengthnumber1×0.2 to 2×
Shimmershimmernumber0.6×0 to 2×

From a script

Every setting above can be changed by the scene's logic, by its key. Say the layer is called Light rays:

scene.set("Light rays", "colour", "#ff8a5c");scene.animate("Light rays", "opacity", 0.5, 2);

Used in

The example scenes with a Light rays layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.

What every layer has

Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.