View all expressions
Motion

Rainbow Color Cycle

Automatically loops the layer’s fill or stroke through the entire RGB spectrum using HSL (Hue, Saturation, Lightness) math. This creates a seamless, chromatic color shift without needing keyframes or gradient effects.

Contributed by:


// Apply to Color property
speed = 1; // Cycles per second
hsl = [time * speed % 1, 1, 0.5, 1];
hslToRgb(hsl);

Rainbow Color Cycle

Practical use case

Perfect for creating psychedelic backgrounds, RGB gaming keyboard aesthetics, or dynamic, shifting gradients in abstract motion graphics.

Check out similar expressions

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

a mesh of elegant lines transparent image