Motion
Get Motion

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
The Lens flare layer with its default settings
The Lens flare layer with its default settings.

Flare

SettingKindStarts atRange and notes
Lightcolourcolour#ffc861–
Ghostscolour2colour#caecff–
Light left and rightoriginXnumber22%-20% to 120%
Light up and downoriginYnumber24%-20% to 120%
Follows the pointertrackon or offoff–
Brightnessbrightnessnumber90%0% to 200%
Sizesizenumber1×0.2 to 3×
Streakstreaknumber55%0% to 100%
Raysraysnumber45%0% to 100%
Ghostsghostsnumber60%0% to 100%The rings and discs on the far side
Halohalonumber35%0% to 100%
Shimmershimmernumber30%0% to 100%
Moves to soundsoundnumber0%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);

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.