StarField
A warp-speed star field effect with configurable density and color. Built with Three.js and @react-three/fiber.
Interactive Demo
Loading star field...
Color
Stars: 1000
Speed: 1.0
Usage
import { StarField } from "@mantleui/react/three";
<StarField color="#ffffff" count={1000} speed={1} height={400}/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 1000 | Number of stars. |
color | string | "#ffffff" | Star color. |
speed | number | 1 | Warp speed multiplier. |
depth | number | 10 | Depth of the star tunnel. |
starSize | number | 0.01 | Size of each star point. |
height | string | number | 400 | Height of the container. |
backgroundColor | string | "transparent" | Background color of the container. |
count1000numberNumber of stars.
color"#ffffff"stringStar color.
speed1numberWarp speed multiplier.
depth10numberDepth of the star tunnel.
starSize0.01numberSize of each star point.
height400string | numberHeight of the container.
backgroundColor"transparent"stringBackground color of the container.