ReferenceLayersLines and shapes
Falling code
Columns of characters raining down.
- Kind
- Layer · Lines and shapes
- Script name
glyphs- Cost to draw
- Moderate
- Reacts to
- sound
- Blend
- Light costs no extra pass

Code
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Characterschars | choice | Katakana | Katakana, Hex, Binary, Letters, Symbols |
Colourcolour | colour | #7ce695 | – |
Headscolour2 | colour | #f4f6f8 | – |
Sizesize | number | 2.4% | 1% to 8%Share of the screen's height |
Speedspeed | number | 1× | 0.1 to 3× |
How manydensity | number | 60% | 5% to 100% |
Trailtrail | number | 45% | 5% to 100% |
Flickerchange | number | 35% | 0% to 100% |
Glowglow | number | 50% | 0% to 100% |
Rushes with 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 Falling code:
scene.set("Falling code", "colour", "#ff8a5c");scene.animate("Falling code", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Falling code", "colour", "#ff8a5c");scene.animate("Falling code", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetFalling code
Parameter Namecolour
Parameter Value
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.