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.
Inside, the colors come from four simple waves added together: the gray tiles show each one alone. At every spot their total picks a color from the strip.
On the left, One wave is a single wave, so it makes plain stripes. On the right, Four waves adds up waves running four ways, so the colors blend into soft blobs.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.