View all expressions
Randomness

Neon Light Flicker

Simulates a faulty or dying light source by randomly switching opacity between a "dim" and "fully on" state. Unlike a standard strobe, this uses probability logic to create an erratic, glitchy, and organic electrical rhythm.

Contributed by:


// Simulates a frozen neon sign struggling to stay on
probability = 85; // % chance to be fully visible (0-100)
minOpacity = 70; // 0-100
// High speed flicker
seedRandom(Math.floor(time * 20), true);
val = random(0, 100);
(val < probability) ? value : minOpacity;

Neon Light Flicker

Practical use case

Use this to create moody cyberpunk titles, horror movie intros, or broken shop signs where a bulb acts as if it has a bad electrical connection.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image