A deep-space scene rendered as a fine, living halftone in raw WebGL. Domain-warped gas with ridged filaments, Hubble-style dust pillars with lit rims and a dark floor, drifting dust lanes and a six-spike beacon star are sampled on a rotated dot grid where the dot area encodes luminance. Thousands of layered stars twinkle with parallax and sit behind the dust. A multi-stop palette colors the whole scene, the pointer shifts the depth layers and lights the gas, and a dotted CSS gradient stands in when WebGL is unavailable.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { HalftoneNebulaField } from "@/components/hyperblur-pro/halftone-nebula-field"
<HalftoneNebulaField style={{ height: 560 }} dotSize={4.5}>
<h1>Signal from the pillars</h1>
</HalftoneNebulaField>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | string[] | ["#0b1233", "#1f4f9c", "#6d3fa6", "#e0566a", "#ffb36b", "#fff0d6"] | Two or more CSS colors ordered from the dim, cool gas to the hot rims and the beacon. They are blended into a smooth ramp. |
| density | number | 1 | How much gas fills the scene and how many stars are drawn, from 0.2 to 2.5. |
| dotSize | number | 4.5 | Halftone cell size in CSS pixels, from 3 to 24. |
| speed | number | 1 | Speed of the slow drift and the star twinkle. 0 freezes the scene. |
| interactive | boolean | true | The pointer shifts the parallax layers and lights the gas nearby. Before the first interaction the view wanders on its own. |
| children | React.ReactNode | - | Content rendered on top of the scene. |
| 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