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

Rays
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Colourcolour | colour | #caecff | – |
Source left and rightoriginX | number | 30% | -50% to 150% |
Source up and downoriginY | number | -20% | -50% to 150% |
Spreadspread | number | 45% | 5% to 100% |
Brightnessbrightness | number | 55% | 0% to 200% |
Reachlength | number | 1× | 0.2 to 2× |
Shimmershimmer | number | 0.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);import { scene } from "motion";scene.set("Light rays", "colour", "#ff8a5c");scene.animate("Light rays", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetLight rays
Parameter Namecolour
Parameter Value
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.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.
Jelly Bloom
Kelp Forest
Snowfall
Storm Front