A topographic map drawn in characters. A slowly shifting terrain is cut into contour lines, and every line cell picks a dash, slash, pipe or backslash that follows the direction of the contour, so ridges and valleys read as flowing ink. Every fifth line is an accent index contour, steep slopes crowd the lines together, and flat ground thins out into faint dots by elevation. The pointer raises a hill under the cursor and clicks send out a swell of terrain. Cached glyph atlas, adaptive cell budget, paused off screen and a still frame under reduced motion.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { GlyphTopoField } from "@/components/hyperblur-pro/glyph-topo-field"
<GlyphTopoField style={{ height: 520 }}>
<div style={{ display: "grid", placeItems: "center", height: "100%", color: "#fff" }}>Your hero</div>
</GlyphTopoField>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | string[] | ["#3a2f22", "#a89572", "#e9dcc0", "#e2694b"] | Four color stops: faint ground fill, contour lines, brighter line cores, and the accent index contours. |
| charset | string | "·.:," | Characters for the faint elevation fill between contour lines, ordered from low to high ground. Whitespace is ignored. |
| density | number | 1 | Multiplier for the number of contour levels and the grid resolution. The cell count is capped for performance. |
| speed | number | 1 | Terrain drift speed multiplier. 0 freezes the terrain. |
| interactive | boolean | true | The pointer raises a hill that deforms the contours and clicks or taps send a swell across the map. |
| contourGlyphs | string | "-\\|/" | Four characters for contour lines running horizontally, down to the right, vertically and up to the right. |
| background | string | "#0d0a07" | Color behind the glyphs. |
| children | React.ReactNode | - | Content rendered on top of the field. |
| className | string | "" | Classes for the root element. Give it a size. |
| style | React.CSSProperties | - | Inline styles for the root element. |
Source code is included in Standard and above