07.17 · Ambient & Background

Plasma Field

Smooth waves of color flow endlessly, made from math. Best for creative sites.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Try it

Change a setting and see the difference as it moves.

Speed

Slow drifts calmly; fast churns.

Pattern size

Large shapes feel soft; small ones feel busy.

Colors

The set of colors the field flows through.

More optionsFewer options

Detail

Sharper detail costs more; phones use at most Medium.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a plasma background to [the section you want it behind]. For every point, add up a few waves based on its position and on time (across, down, diagonally and outward from the center) and use the sum to pick a color from a smooth palette, so the whole field flows like liquid color. To keep it fast, draw the field into a small image and scale it up smoothly to fill the section, using a smaller image on phones. If the visitor has reduced motion turned on, show one still frame. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Music and creative sites
  • Hero sections
  • Loading screens
  • Retro themes

Avoid on

  • Serious content
  • Long reading pages