ReferenceLayersLight and particles
Lens flare
A bright light caught in the lens.
- Kind
- Layer · Light and particles
- Script name
flare- Cost to draw
- Moderate
- Reacts to
- sound and the pointer
- Blend
- Light costs no extra pass

Flare
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Lightcolour | colour | #ffc861 | – |
Ghostscolour2 | colour | #caecff | – |
Light left and rightoriginX | number | 22% | -20% to 120% |
Light up and downoriginY | number | 24% | -20% to 120% |
Follows the pointertrack | on or off | off | – |
Brightnessbrightness | number | 90% | 0% to 200% |
Sizesize | number | 1× | 0.2 to 3× |
Streakstreak | number | 55% | 0% to 100% |
Raysrays | number | 45% | 0% to 100% |
Ghostsghosts | number | 60% | 0% to 100%The rings and discs on the far side |
Halohalo | number | 35% | 0% to 100% |
Shimmershimmer | number | 30% | 0% to 100% |
Moves to soundsound | number | 0% | 0% to 100% |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Lens flare:
scene.set("Lens flare", "colour", "#ff8a5c");scene.animate("Lens flare", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Lens flare", "colour", "#ff8a5c");scene.animate("Lens flare", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetLens flare
Parameter Namecolour
Parameter Value
Used in
The example scenes with a Lens flare 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.
Snowfall