Animated contour lines traced with marching squares over a slowly evolving, domain-warped noise terrain. The pointer raises a hill that the contours ripple around.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { CanvasTopographicLines } from "@/components/hyperblur-pro/canvas-topographic-lines"
<CanvasTopographicLines />| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#1f6feb", "#3fd0c9", "#c8f560"] | Color ramp from the lowest to the highest contour. |
| background | string | "#06090d" | Background color behind the lines. |
| speed | number | 1 | Animation speed multiplier. |
| density | number | 1 | Contour count multiplier. 1 is 14 levels, capped at 32 (18 on low-end devices). |
| scale | number | 1 | Size of the terrain features. Larger values give wider hills. |
| lineWidth | number | 1 | Base line width in pixels. |
| majorEvery | number | 5 | Every Nth contour is drawn thicker and brighter. 0 disables major lines. |
| pointer | boolean | true | Raises a hill under the pointer that the contours bend around. |
| seed | number | 3 | Seed for the terrain. |
| children | ReactNode | - | Content rendered on top of the background. |
| className | string | "" | Extra classes for the root. The root has a 240px minimum height; set a height to size it. |
| style | CSSProperties | - | Inline styles for the root. |
Source code is included in Standard and above