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.
// 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/goldfish-tank.js";
export function GoldfishTank() {
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 goldfish-tank
<!-- Export the GIF below in the look you picked, commit it, then: -->
<p align="center">
<img src="assets/goldfish-tank.gif" alt="Goldfish Tank, animated ASCII art" width="720">
</p>
Add the animated ASCII art piece "goldfish-tank" (Goldfish Tank) 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="goldfish-tank"></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/goldfish-tank
Rules for coding agents: https://www.ascii-magic.com/ascii/use/ai-coding-agents
Export
Pause on the frame you like, pick a look, then download it at an exact size.
This ASCII fish scene is a whole aquarium drawn in characters: three goldfish glide back and forth past swaying plants while a column of bubbles rises from the air stone. It is hand-coded, not a filtered photo, so every fin, pebble and ripple is a real character on an 84 by 34 grid, animated at 24 frames per second. Pause it, change its speed or switch it to a light background in the player above.
Most people looking for ASCII art fish want something to copy and paste, and this piece does that: press Copy as text and the current frame lands on your clipboard as plain characters. It also goes further than a pasted doodle. You can embed the moving tank on a web page, play it in a terminal, or export it as a GIF, a video or a calm 4K wallpaper. Like every piece in the library, it is MIT licensed.
Tiny text fish versus a full ASCII aquarium
Classic fish ASCII art is a one-liner. Little swimmers like ><> and <*)))>< turn up in chats, forum posts and code comments because they fit on a single line and survive any font. If that is all you need, type one out and you are done. A fish tank is a different kind of picture. It needs water, light, a gravel bed and room for the fish to turn around, and a single line cannot hold any of that.
Goldfish Tank is the full version: an animated ASCII aquarium with a frame, a stand, six plants, a rock and three fish. You can still take it as text. Pause the player where the fish look best, press Copy as text, and paste the frame into a code block or a plain-text file. A few tips for a clean ASCII fish copy and paste:
Pause while the fish are side-on in open water, since a fish narrows for a moment each time it turns.
Paste inside three backticks in chat apps, so a monospace font keeps every column lined up.
The scene is 84 characters wide, so paste it where long lines are allowed, or it will wrap on phones and in narrow windows.
Copied text carries no color. For the orange fish and blue water, send a PNG or GIF export instead.
What the goldfish tank shows and how it is drawn
Three goldfish of different sizes share the tank. The largest swims through the middle of the water, a medium fish cruises lower down in front of the plants, and the smallest stays up near the surface. Each one glides across the tank and back, slowing at each end of its swim. As a fish turns, its body narrows as if seen head-on, then it faces the other way and sets off again. The three swim at different speeds, so they pass each other at new points on every lap, and each one bobs gently up and down as it goes.
The fish are built from block characters. Each body is an oval of solid and shaded blocks, lit from above, so the back glows pale gold and the belly deepens to red-orange. A dark dot marks the eye, an angle bracket the mouth and a short slash the fin underneath, with a small dorsal fin on top. The tail fans out behind in shaded blocks and flicks quickly from side to side, much faster than the fish moves forward.
Around them, the tank is a small world of its own. The water shades from pale aqua near the surface to deep blue-green at the bottom, with patches of rippling light drifting through it, and the surface line shimmers between waves and calm. Six leafy plants sway from the gravel, their tips moving the most. A rounded gray rock sits on a bed of pebbles in amber, sand, gray, brown and rust. To the right, a small air stone sends a steady stream of bubbles wobbling upward, each growing from a speck to a full O as it climbs. A heavy dark frame, a glint on the glass, a stand below and a dark brown wall finish the scene.
How to use this ASCII fish tank
Everything you need is on this page. On a website, the embed draws the tank on a canvas, weighs a few KB, plays only while it is on screen and holds a still frame for visitors who prefer reduced motion. Attributes tune it to your page: size scales the tank, speed slows the fish down or hurries them along, bg sets the background color and still shows a single frame with no motion.
You can also redraw the whole tank before you embed or export it. Halftone dots turns the goldfish into soft round dots, Blocks gives it a chunky, pixel-like feel, and Letters or Binary rebuild the water and fish from text. Pick your own characters to draw the scene in a word or symbol you like, then adjust dot size and density with the sliders. Add mono to draw everything in a single brand color.
The code tabs hold four ready snippets, and the export buttons cover the places where code cannot run:
HTML embed: add the library script once, then place <ascii-art piece="goldfish-tank"> with its closing tag wherever the tank should swim.
React: the React tab has a short component. Copy the piece file and its small kit.js helper into your project, and the tank renders inside your app.
Terminal: the tank plays in a terminal, in color where supported, with npx ascii-magic-art goldfish-tank. Add --frame to print one still frame.
README: download the GIF, commit it to your repository, then paste the Markdown from the README tab to show animated fish at the top of a project page.
Exports: a GIF for chats and email, MP4 or WebM video at 1920 by 1080 with a 4K option, and PNG wallpapers and social sizes.
Where a calm fish tank fits
A goldfish tank is about the calmest thing you can put on a screen. Nothing flashes and nothing demands attention, which makes animated fish a good fit wherever a screen has to sit quietly for a while:
Idle and break screens: leave it running on a kiosk, a waiting room display or a meeting room screen between bookings.
Office status TVs: tuck a small tank into a corner of a status board so the screen has some life when nothing is happening. Ideas are in ASCII charts for status pages and dashboards.
Cozy wallpapers: export a desktop or phone wallpaper for a dark background with a warm pop of orange. More sizes and picks are in ASCII art wallpapers for desktop and phone.
Pause Goldfish Tank on a frame you like and press Copy as text, which copies the whole aquarium as plain characters. Paste it into a code block or a plain-text file so the columns stay lined up. For a quick one-line swimmer instead, type a classic such as ><> or <*)))><, which fits anywhere.
Q. Is there an animated ASCII fish tank?
Yes, Goldfish Tank is an animated ASCII aquarium with three goldfish, six swaying plants, a gravel bed and bubbles rising from an air stone. It plays on this page at 24 frames per second, and you can embed it on a website, play it in a terminal or export it as a GIF or video.
Q. What is the simplest ASCII fish?
The simplest ASCII fish is ><>, three characters that read as a fish swimming to the right, while <>< swims to the left. A slightly fancier one is <*)))><, with a mouth, an eye, a striped body and a tail. They fit on one line, which is why people paste them into chats and code comments.
Q. How do I add an ASCII aquarium to my website?
Add the library script tag once, then place <ascii-art piece="goldfish-tank"> with its closing tag where the tank should appear. It draws on a canvas, weighs only a few KB and plays only while it is on screen. Visitors who prefer reduced motion see a still frame. The exact snippet is in the HTML tab on this page.
Q. Can I play the fish tank in my terminal?
Yes, the tank plays in a terminal, in color where the terminal supports it. Copy the command from the terminal tab on this page and run it. Add --frame to print a single still frame, or --seconds=3 to watch for three seconds and stop, which suits a welcome message each time a shell opens.
Q. How do I put an animated fish in a README?
Download the GIF from this page, commit it to your repository, then paste the Markdown from the README tab. A GIF keeps moving on project pages where scripts cannot run, so the fish swim right at the top of your README. For a wide animated banner with your project name, try the README banner maker instead.
Q. Can I use the goldfish tank as a desktop wallpaper?
Yes, the piece page exports PNG wallpapers in 4K and 1080p desktop sizes, plus a phone size. The dark blue water and orange fish make a calm background that sits quietly behind windows and icons. Try a look such as Halftone dots first for a softer finish, and see ASCII art wallpapers for desktop and phone for more ideas.
Q. Can I change how the fish tank looks?
Yes, any look in the library can redraw the tank, including Halftone dots, Blocks, Letters, Binary and your own characters. Dot size and density sliders fine-tune the result. On an embed, the look and chars attributes do the same, and mono draws the whole tank in a single color to match your brand.
Q. How many fish are in the goldfish tank?
There are three goldfish, each a different size and swimming at its own depth and speed. The largest swims mid-water, a medium one passes in front of the plants lower down, and the smallest stays near the surface. Because their speeds differ, they cross paths at different points instead of moving in step.
Q. Is the goldfish tank good for a loading screen?
Yes, fish swimming back and forth read as a gentle wait, which suits calm sites such as pet shops, aquarium stores and wellness apps. Keep the tank small, show it while the page is busy and swap it out once everything is ready. For the full pattern, see ASCII loading spinners and progress bars for websites.
Q. Can I use the goldfish tank in a commercial project?
Yes, Goldfish Tank is MIT licensed like every piece in the library, so you can use it in personal and commercial work, from a shop page to an app's splash screen. Credit is appreciated but not required. That covers the embed and the GIF, video and PNG exports you make from this page.
Q. Where can I find more ASCII sea animals?
Several more live in the Animals category, each animated in characters. Koi Pond Ripples shows koi gliding under lily pads from above, Jellyfish pulses slowly upward through deep blue water, and Swimming Whale rises through shafts of light to blow a spout. Browse Animals for dogs, birds and other creatures.
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.
/* goldfish-tank: goldfish gliding through a planted aquarium, bubbles streaming up from the air stone. */
import { Grid, palette, gradient, KEYS, fbm, noise2, rng, clamp, TAU } from "../lib/kit.js";
const P = [];
const add = (c) => { const o = P.length; P.push(...c); return o; };
const WALL = add(gradient(["#1a1614", "#2a2420", "#3a322a"], 4));
const WATER = add(gradient(["#062a3a", "#0a4058", "#125a74", "#1e7890", "#3496a8", "#5ab4bc"], 12));
const GLASS = add(["#9ac8d4", "#d4eef4"]);
const FRAME = add(gradient(["#1a1a1e", "#34343a", "#5a5a62"], 3));
const GRAVEL = add(["#a8743a", "#6a4a2a", "#d8b07a", "#8a8a7a", "#c45a3a", "#4a3a2a"]);
const PLANT = add(gradient(["#1a5a1e", "#2e7e26", "#4ea232", "#7ac448"], 6));
const FISH = add(gradient(["#b8320a", "#e0540e", "#f47a1a", "#ffa040", "#ffd08a"], 8));
const BUB = add(["#a8e0ec", "#ffffff"]);
const ROCK = add(gradient(["#2a2e34", "#4a5058", "#6a7078"], 3));
const DARK = add(["#101010"]);
export const meta = {
slug: "goldfish-tank",
name: "Goldfish Tank",
category: "animals",
note: "Goldfish glide back and forth through a planted aquarium while bubbles stream up from the air stone.",
tags: ["fish", "aquarium", "water", "pets", "calm", "wallpaper"],
cols: 84, rows: 34, fps: 24,
palette: palette(P),
};
const SH = " ░▒▓█";
export default function create() {
const { cols, rows } = meta;
const g = new Grid(cols, rows);
const X0 = 3, X1 = 80, Y0 = 3, Y1 = 28, surf = 5, bed = 25;
const r = rng(21);
const bubbles = Array.from({ length: 26 }, (_, i) => [i % 2 ? 66 : 67, r(), 0.18 + r() * 0.12, r() * TAU]);
const plants = [[10, 14, 0], [15, 10, 1], [56, 12, 2], [72, 16, 3], [76, 9, 4], [30, 7, 5]];
const fish = [
{ cx: 40, A: 24, w: 0.3, ph: 0, cy: 12, s: 1.6 },
{ cx: 42, A: 22, w: 0.24, ph: 2.3, cy: 19, s: 1.3 },
{ cx: 38, A: 20, w: 0.38, ph: 4.4, cy: 8.5, s: 1.0 },
];
const gravel = Array.from({ length: (X1 - X0) * 4 }, () => Math.floor(r() * 6));
const drawFish = (f, t) => {
const a = t * f.w + f.ph;
const fx = f.cx + Math.sin(a) * f.A;
const vx = Math.cos(a);
const d = vx >= 0 ? 1 : -1;
const turn = Math.max(0.35, Math.pow(Math.abs(vx), 0.35));
const fy = f.cy + Math.sin(t * 0.7 + f.ph) * 2;
const rx = 5 * f.s * turn, ry = 2.1 * f.s;
const wag = Math.sin(t * 9 + f.ph);
for (let k = 1; k <= Math.round(4 * f.s); k++) {
const tx = fx - d * (rx + k - 1);
const hh = 0.6 + k * 0.55 * f.s;
const off = wag * k * 0.25;
for (let y = Math.round(fy - hh + off); y <= Math.round(fy + hh + off); y++) g.set(tx, y, k > 2 && Math.abs(y - fy - off) < 0.6 ? "▒" : "▓", KEYS[FISH + (k > 2 ? 1 : 2)]);
}
for (let y = Math.floor(fy - ry - 1); y <= fy + ry; y++) for (let x = Math.floor(fx - rx - 1); x <= fx + rx + 1; x++) {
const dx = (x - fx) / rx, dy = (y - fy) / ry;
const dd = dx * dx + dy * dy;
if (dd > 1) continue;
const lit = clamp(0.6 - dy * 0.35 + dx * d * 0.1 + Math.sqrt(1 - dd) * 0.3);
g.set(x, y, dd > 0.75 ? "▓" : "█", KEYS[FISH + Math.min(7, Math.floor(lit * 8))]);
}
g.set(fx - d * 1, fy - ry - 0.5, "▄", KEYS[FISH + 2]);
g.set(fx, fy - ry - 0.5, "▄", KEYS[FISH + 1]);
g.set(fx + d * (rx - 1.6), fy - 0.6, "●", KEYS[DARK]);
g.set(fx + d * (rx + 0.6), fy + 0.2, d > 0 ? ">" : "<", KEYS[FISH + 4]);
g.set(fx - d * 0.5, fy + ry - 0.2, d > 0 ? "\\" : "/", KEYS[FISH + 3]);
};
return (t) => {
g.clear();
for (let y = 0; y < rows; y++) for (let x = 0; x < cols; x++) g.set(x, y, "▓", KEYS[WALL + Math.min(3, Math.floor(noise2(x * 0.1, y * 0.2, 1) * 4))]);
for (let y = Y0; y <= Y1; y++) for (let x = X0; x <= X1; x++) {
if (y < surf) { g.set(x, y, "░", KEYS[GLASS]); continue; }
const depth = (y - surf) / (bed - surf);
const caust = noise2(x * 0.25 + t * 0.4, y * 0.5 - t * 0.3, 5);
const v = clamp(0.95 - depth * 0.7 + (caust > 0.62 ? 0.18 : 0) + (noise2(x * 0.05, y * 0.1, 2) - 0.5) * 0.2);
g.set(x, y, caust > 0.7 && depth < 0.6 ? "▒" : "▓", KEYS[WATER + Math.min(11, Math.floor(v * 12))]);
}
for (let x = X0; x <= X1; x++) g.set(x, surf, noise2(x * 0.4 + t * 1.5, 1, 3) > 0.5 ? "~" : "-", KEYS[GLASS + 1]);
for (let y = bed; y <= Y1; y++) for (let x = X0; x <= X1; x++) {
const k = gravel[(x - X0) + (y - bed) * (X1 - X0)];
g.set(x, y, k % 2 ? "●" : "▓", KEYS[GRAVEL + k]);
}
for (let y = bed - 3; y <= bed; y++) for (let x = 22; x <= 36; x++) {
const d = Math.hypot((x - 29) / 7, (y - bed) / 3.2);
if (d < 1) g.set(x, y, d > 0.8 ? "▓" : "█", KEYS[ROCK + Math.min(2, Math.floor((1 - d) * 2 + (y < bed - 1 ? 1 : 0)))]);
}
g.text(64, bed, "▄▄▄▄", KEYS[ROCK + 1]);
for (const [px, h, i] of plants) {
for (let k = 0; k < h; k++) {
const y = bed - k;
const sway = Math.sin(t * 1.2 + i + k * 0.3) * (k / h) * 2.2;
const x = px + sway;
g.set(x, y, "|", KEYS[PLANT + 1]);
if (k % 2 === 1) { g.set(x - 1, y, i % 2 ? "(" : "<", KEYS[PLANT + 2 + (k % 3 ? 0 : 1)]); g.set(x + 1, y - 1, i % 2 ? ")" : ">", KEYS[PLANT + 3]); }
if (k % 3 === 0) { g.set(x - 2, y - 1, "▓", KEYS[PLANT + 2]); g.set(x + 2, y, "▓", KEYS[PLANT + 4]); }
}
g.set(px + Math.sin(t * 1.2 + i) * 2.2, bed - h, "*", KEYS[PLANT + 5]);
}
for (const f of fish) drawFish(f, t);
for (const [bx, ph, sp, w] of bubbles) {
const a = (t * sp + ph) % 1;
const y = bed - 1 - a * (bed - surf - 1);
const x = bx + Math.sin(t * 3 + w + a * 6) * 1.2;
g.set(x, y, a > 0.6 ? "O" : a > 0.25 ? "o" : "°", KEYS[BUB + (a > 0.5 ? 1 : 0)]);
}
g.box(X0 - 1, Y0 - 1, X1 - X0 + 3, Y1 - Y0 + 3, "heavy", KEYS[FRAME + 2]);
for (let y = Y0; y < Y1; y += 1) if (noise2(1, y * 0.3, 4) > 0.7) g.set(X0, y, "│", KEYS[GLASS + 1]);
for (let y = Y1 + 2; y < rows; y++) for (let x = 0; x < cols; x++) g.set(x, y, y === Y1 + 2 ? "▀" : "█", KEYS[FRAME + (y === Y1 + 2 ? 1 : 0)]);
return g.frame();
};
}