A classic sine plasma, rainbow bands rolling and folding into each other.
▓▒▒▓▓░░░▓█▓▒▒▒▒▒▒▓▒▒▒▒▒▒▒█▓░░░▒▓▓▒▒▒▓█▓▓▒▒▒▒▒▒▓▓█▓▓▒▒▒▒▒▒▒▓▓▓▓▓▓▓▒▒▒▒▒▒▓█▓▒░░░░░▒▒▓▓███▓ ▒▒█▒░░▒█▓▒▒▒▒▓██████▓▒▒▒▒▓▓▒░░▒█▒▒▒▓█▓▒░░░░░░░▒▓▓█▓▒▒▒▒▒▓██▓▓▓▓▓▓▓█▓▓▒▒▒▒▒▓█▓▒░░░░░░░░░░ ▓█▒░░▒█▒▒▒▒▓█▓▒▒▒▒▒▓█▓▒▒▒▓█▒░░▒▓▒▒▒█▒░░░░░░░░░░▒▓█▓▒▒▒▒▓█▓▒▒░░░░░░▒▒▓██▓▒▒▒▒▓█▓▒▒░░░░░░░ ▓░░░▓█▒▒▒▓█▓▒░░░░░░▒▓█▓▒▒▓█▒░░▓▓▒▒█▒░░░░░░░░░░░░▓█▓▒▒▒▓█▓▒░░░░░░░░░░░░▒▓█▓▒▒▒▒▒▓█▓▒▒▒░░░ ▒░░▒█▒▒▒▓█▓▒░░░░░░░▒▓█▓▒▒▓▓░░░█▒▒▓▓░░░▒▓▓▓▓▒░░░░▒█▓▒▒▒▓▓▒░░░░░░░░░░░░░░░▒▓█▓▒▒▒▒▒▓▓██▓▓▓ ░░▒█▓▒▒▓█▓▒░░░░░░░░▒▒█▓▒▒▓▓░░▒█▒▒▓▒░░▒▓▓▓██▓▒░░░▒█▓▒▒▒█▓░░░░░░▒▒▒▒▒▒░░░░░░▒▓█▓▒▒▒▒▒▒▓▓▓▓ ░░▓█▒▒▒▓█▓▒░░░░░░░░▒▓█▒▒▒▓▒░░▒▓▒▒█▒░░▒▓███▓▒░░░░▓█▒▒▒▓█▒░░░░▒▒▓▓▓▓▓▓▒▒░░░░░▒▓█▓▒▒▒▒▒▒▒▒▒ ░░▓▓▒▒▒▓█▓▒░░░░░░░▒▒█▓▒▒▒█▒░░▓▓▒▒█▒░░░▒▒▓▓▒▒░░░▒▓▓▒▒▒▓▓▒░░░▒▒▓██████▓▓▒░░░░░▒▓█▓▒▒▒▒▒▒▒▒ ░░▓█▒▒▒▒▓█▓▒▒░░░▒▒▓█▓▒▒▒▓▓░░░▓▓▒▒█▓░░░░░▒░░░░░░▒█▓▒▒▒█▒░░░░▒▓▓██▓▓▓██▓▓▒░░░░░▒▓█▓▒▒▒▒▒▒▒ ░░▒█▓▒▒▒▒▓█▓▓▓▓▓▓██▓▒▒▒▓█▒░░▒█▒▒▒█▓░░░░░░░░░░░▒▓█▒▒▒▓█▒░░░░▒▓██▓▓▓▓▓██▓▒░░░░░▒▓█▓▓▒▒▒▒▒▒ ░░░▒█▓▒▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▓█▒░░░▓▓▒▒▒█▓▒░░░░░░░░░░▒█▓▒▒▒▓█▒░░░░▒▓▓██▓▓▓██▓▓▒░░░░░▒▓█▓▒▒▒▒▒▒▒ ░░░░▒▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▓█▓░░░░▓▓▒▒▒▓█▓▒░░░░░░░░░▒▓█▓▒▒▒▓█▒░░░░░▒▓▓█████▓▓▒░░░░░░▒▓█▓▒▒▒▒▒▒▒ ▓▒░░░░▒▓▓█▓▓▓▓▓▓▓▓█▓▒░░░░▒▓▓▒▒▒▓█▓▒░░░░░░░░░░▒▓█▓▒▒▒▒█▓▒░░░░░▒▒▓▓▓▓▓▒▒░░░░░░▒▓█▓▒▒▒▒▒▒▒▒ █▓▓▒░░░░░░▒▒▒▒▒▒▒░░░░░░▒▓▓▒▒▒▒▓█▒▒░░░░░░░░░░░░▒▓█▒▒▒▒▓█▓▒░░░░░░▒▒▒▒░░░░░░░░▒▓█▓▒▒▒▒▒▒▓▓▓ ▒▒▓█▓▓▒░░░░░░░░░░░░▒▓█▓▓▒▒▒▒▓█▒▒░░░░░░░░░░░░░░░▒▓▓▒▒▒▒▓█▓▒░░░░░░░░░░░░░░░▒▓█▓▓▒▒▒▒▒▓▓██▓ ▒▒▒▒▒▒▓▓███▓▓▓███▓▓▒▒▒▒▒▒▓█▓▒░░░░░░▒▒▒▒▒▒▒░░░░░░▒▓█▒▒▒▒▒▓█▓▒░░░░░░░░░░░▒▓██▓▒▒▒▒▒▓▓█▓▓▒▒ ▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓█▓▒░░░░░░▒▓▓████████▓▒▒░░░░▒▓█▓▒▒▒▒▓▓█▓▓▒▒▒▒▒▒▒▓▓█▓▓▒▒▒▒▒▒▓█▓▓▒▒░░ ▓▓▓████▓▓▓▓▓▓▓███▓▓▒░░░░░░▒▒▓██▓▒▒▒▒▒▒▒▒▒▒▓██▓▒░░░░▒▓█▓▒▒▒▒▒▓▓███████▓▓▒▒▒▒▒▒▒▓█▓▓▒░░░░░ ░░░░░░░░▒░░░░░░░░░░░░▒▒▓██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▓▒░░░░▒▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓██▓▒░░░░░░░ ░░░░░░░░░░░░░░░▒▒▓▓█▓▓▒▒▒▒▒▒▒▓▓████▓████▓▓▒▒▒▒▒▓█▓▒░░░░▒▓█▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓█▓▒▒░░░░░░░░ ░░░░▒▒▒▒▒▓▓▓██▓▓▒▒▒▒▒▒▒▒▓██▓▒▒▒░░░░░░░░▒▒▓██▓▒▒▒▒▓█▓▒░░░░▒▓██▓▓▒▒▒▒▒▒▒▒▓▓▓█▓▓▒░░░░░░░▒▒▒ ▒▒▓▓▓███▓▓▓▒▒▒▒▒▒▒▒▓▓█▓▓▒░░░░░░░░░░░░░░░░░░▒▓█▓▒▒▒▒▓█▒░░░░░▒▓▓██▓▓▓▓▓▓▓▓██▓▒▒░░░░░░░▒▒▓▓ ▓▓██▓▓▓▒▒▒▒▒▒▒▒▒▓██▓▒░░░░░░░░▒▒▒▒▒▒▒▒▒░░░░░░░▒▓▓▒▒▒▒▓█▓▒░░░░░▒▓▓████████▓▓▒▒░░░░░░░▒▒▓▓█ ███▓▓▒▒▒▒▒▒▒▒▓▓█▓▓▒░░░░░░░▒▒▓▓███████▓▓▒▒░░░░░▒▓█▒▒▒▒▓█▓▒░░░░░▒▓▓▓█████▓▓▓▒▒░░░░░░░▒▒▓██ ██▓▓▒▒▒▒▒▒▒▒▓▓█▓▒▒░░░░░░▒▓▓██▓▓▓▓▓▓▓▓▓█▓▓▒░░░░░▒█▓▒▒▒▒█▓▒░░░░░▒▒▓▓██████▓▓▓▒▒░░░░░░▒▒▓██ ▓██▓▓▒▒▒▒▒▒▒▓▓█▓▒░░░░░░▒▒▓██▓▓▓▒▒▒▒▓▓▓██▓▒▒░░░░▒▓▓▒▒▒▒█▓▒░░░░░▒▓▓█████████▓▓▒▒░░░░░░▒▓▓█ ▒▓▓██▓▒▒▒▒▒▒▒▓▓█▓▒░░░░░░▒▓▓██▓▓▓▓▓▓▓▓▓█▓▓▒░░░░▒▓█▓▒▒▒▓█▒░░░░░▒▓██▓▓▓▓▓▓▓▓▓██▓▒▒░░░░░░▒▓█ ░▒▒▓▓██▓▓▒▒▒▒▒▒▓█▓▒▒░░░░░░▒▒▓▓███████▓▓▒▒░░░░▒▓█▓▒▒▒▓█▓░░░░▒▒▓█▓▓▒▒▒▒▒▒▒▒▒▓▓██▓▒░░░░░░▒▓ ░░░░░▒▒▓██▓▓▒▒▒▒▒▓▓█▓▒░░░░░░░░▒▒▒▒▒▒▒░░░░░░░▒▓▓▒▒▒▒▓▓▒░░░░▒▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▓▒▒░░░░▒▓ ░░░░░░░░░▒▒▓██▓▒▒▒▒▒▒▓█▓▒▒░░░░░░░░░░░░░░░▒▓█▓▒▒▒▒▓█▒░░░░▒█▓▒▒▒▒▒▒▒▓▓▓▓▓▒▒▒▒▒▒▒▒▓█▓▒░░░░▒
Paste two lines into any page, use it from React, play it in a terminal, put a GIF in a README, or hand the Agent prompt to your coding agent. Every tab follows the look you pick above.
<script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script>
<ascii-art piece="plasma"></ascii-art>// npm install ascii-magic-art
import { useEffect, useRef } from "react";
import { play } from "ascii-magic-art/runtime/player.js";
import * as piece from "ascii-magic-art/pieces/plasma.js";
export function Plasma() {
const ref = useRef(null);
// play() draws the piece on a canvas in your look and returns stop(), which React runs on unmount
useEffect(() => play(ref.current, piece), []);
return <pre ref={ref} style={{ fontSize: 10, fontFamily: "Menlo, Consolas, monospace" }} />;
}npx ascii-magic-art plasma<!-- Export the GIF below in the look you picked, commit it, then: -->
<p align="center">
<img src="assets/plasma.gif" alt="Sine Plasma, animated ASCII art" width="720">
</p>Add the animated ASCII art piece "plasma" (Sine Plasma) from ASCII Magic to this project.
1. Load the script once, in the browser only (in SSR frameworks such as Next.js, load it on the client):
<script type="module" src="https://www.ascii-magic.com/ascii/ascii.js"></script>
2. Put the piece where it fits best, such as the hero, a loading state, an empty state or the 404 page:
<ascii-art piece="plasma"></ascii-art>
3. Keep a real heading or text next to it (the art is decoration), and size it with the size attribute or CSS.
Preview and options: https://www.ascii-magic.com/ascii/plasma
Rules for coding agents: https://www.ascii-magic.com/ascii/use/ai-coding-agentsPause on the frame you like, pick a look, then download it at an exact size.
MIT licensed and open source on GitHub. It imports one small helper file, kit.js. This is the animation itself: what gets drawn in every frame. The look you pick is applied on top by the player, like a filter, so this file stays the same in every look while the snippets above change with it. Edit it to change the animation; see the docs to make your own.
/* plasma: a colourful sine plasma, rainbow bands rolling and folding into each other. */
import { Grid, palette, hsl, KEYS } from "../lib/kit.js";
const N = 36;
const HUES = Array.from({ length: N }, (_, i) => hsl((i / N) * 360, 90, 58));
export const meta = {
slug: "plasma",
name: "Sine Plasma",
category: "demoscene",
note: "A classic sine plasma, rainbow bands rolling and folding into each other.",
tags: ["plasma", "demoscene", "retro", "wallpaper", "hero"],
cols: 88, rows: 30, fps: 30,
palette: palette(HUES),
};
const CH = "░▒▓█▓▒";
export default function create() {
const { cols, rows } = meta;
const g = new Grid(cols, rows);
return (t) => {
g.clear();
const cx1 = Math.sin(t * 0.31) * 30, cy1 = Math.cos(t * 0.23) * 20;
for (let y = 0; y < rows; y++) {
const py = y * 2;
for (let x = 0; x < cols; x++) {
let v = Math.sin(x * 0.11 + t * 0.9);
v += Math.sin((py * 0.09 + t * 0.6));
v += Math.sin((x * 0.07 + py * 0.06 + t * 0.7));
const dx = x - cols / 2 + cx1, dy = py - rows + cy1;
v += Math.sin(Math.sqrt(dx * dx + dy * dy) * 0.12 - t * 1.3);
const u = (v + 4) / 8;
const hi = Math.floor((u * 2 + t * 0.08) * N) % N;
const b = Math.floor(((Math.sin(v * Math.PI) + 1) / 2) * CH.length * 0.999);
g.set(x, y, CH[b], KEYS[(hi + N) % N]);
}
}
return g.frame();
};
}
/YOUR OWN
The pieces here are hand-built animations. To turn your own photo, logo or video into animated ASCII, use the ASCII Magic editor.