Plasma Screensaver
Plasma is a free, in-browser screensaver that recreates the classic demoscene effect: overlapping sine waves blend into a slow, shifting field of color. It is generated live from math, not a looping video. Nothing to download, and ESC exits whenever you like.
How the Plasma screensaver works
For every pixel the code adds together four sine waves: one along x, one along y, one along the diagonal x+y, and one based on the distance from the center. Summing these interfering waves gives each pixel a smoothly varying value, the heart of the plasma look.
That summed value is normalized into the 0–255 range and used as an index into a precomputed 256-entry color lookup table. The Rainbow palette walks the full hue circle, while Fire, Ocean and Mono are built from gradient stops, so the same math can wear very different skins.
Animation comes from a time term added inside every sine, which slides the wave phases each frame. In Rainbow mode the palette index is additionally scrolled over time, so colors cycle through the spectrum as the shapes morph.
Like the other field effects here, plasma is rendered on a small offscreen canvas and scaled up to the screen. The Smooth toggle enables bilinear upscaling, blending the low-resolution buffer into soft, continuous gradients instead of blocky pixels.
A worked example
With the defaults — Rainbow palette, Scale 5, Speed 4, Smooth on — the four sine waves are sampled at a medium frequency (Scale sets how tight the bands are), and the whole field drifts at a relaxed pace. Because Rainbow is active, the lookup table also scrolls, so the bands continuously shift hue. Smoothing upscales the small buffer into the silky color blends demosceners made famous.
Settings & tips
- Lower Scale for big, lazy color blobs, or raise it toward 10 for tight, intricate interference patterns.
- Switch the Palette to Fire, Ocean or Mono to completely change the mood while keeping the same motion.
- Turn off Smooth for a deliberately retro, pixelated low-res look straight out of a 90s demo.
Frequently asked questions
- What is the plasma effect?
- Plasma is a classic demoscene visual where interfering sine waves create smoothly shifting fields of color. It was popular on home computers in the late 1980s and 1990s.
- Is the plasma screensaver free?
- Yes. It runs free in your browser with no download, install or sign-up required.
- How is the plasma generated?
- Each pixel sums four sine waves and the result is mapped through a color palette. A time term shifts the waves so the pattern animates.
- How do I exit the plasma screensaver?
- Press the ESC key at any time to exit and return to the page.
- Can I change the plasma colors?
- Yes. The Palette control offers Rainbow, Fire, Ocean and Mono, each driving a different color lookup table over the same animation.