Motion
Get Motion

ReferenceLayersLight and particles

Stars

A sky of twinkling stars drifting by, or flying past at warp.

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

Stars

SettingKindStarts atRange and notes
First colourcolourcolour#f4f6f8–
Second colourcolour2colour#caecff–
How manydensitynumber35%2% to 100%
Sizesizenumber1×0.3 to 4×
Twinkletwinklenumber60%0% to 100%
MotionmotionchoiceDriftDrift, Warp
Speedspeednumber0.4×0 to 4×
Drift towardsanglenumber200°0 to 360°

From a script

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

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

Used in

The example scenes with a Stars 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.