Cube Horizon
A sea of small square pixels rolling toward a curved horizon: crests catch the colour, troughs fade, and the far rows melt into haze. The pointer leaves a wake and a click drops a ripple.
pixikit.com/docs/effects/cube-horizon
Customize
Preset
Color
Accent color
Background color
Density1.00
Voxel size0.55
Roundness0.20
Tilt1.00
Horizon0.56
Curvature0.50
Wave height1.00
Wave length1.00
Speed0.50
Turbulence0.40
Brightness1.00
Glow1.00
Haze0.70
Bloom0.50
Focus0.25
Aperture0.35
Grain0.25
Interactive
Ripples1.00
Intro
Paused
Props
30| Name | Type | Default | Description |
|---|---|---|---|
preset | "horizon" | "calm" | "dots" | "dusk" | "grid" | "planet" | "storm" | "horizon" | A named look. Values you leave at their default follow it; anything you set wins. |
color | string | "#5227FF" | Colour of the field in the troughs and the distance. |
accentColor | string | "#B19EEF" | Colour of the crests and of the light on the horizon. |
backgroundColor | string | "transparent" | Fill behind the field. Transparent shows the page; on a light backdrop the pixels are drawn as ink. |
density | number | 1 | How many pixels make up the field. Higher values give finer ones. |
voxelSize | number | 0.55 | Size of each pixel as a share of the grid spacing. |
roundness | number | 0.2 | Corner rounding, from 0 (square) to 1 (round dots). |
tilt | number | 1 | How flat the pixels lie on the surface. 1 lays them on the waves, 0 turns them to face you. |
horizon | number | 0.56 | Height of the horizon, as a share of the frame from the top. |
curvature | number | 0.5 | How far the horizon falls away at the sides, from flat to a planet limb. |
waveHeight | number | 1 | Height of the waves. 0 gives a flat field. |
waveLength | number | 1 | Length of the waves. Lower values give a choppier sea. |
speed | number | 0.5 | How fast the waves roll in. 0 holds them still. |
turbulence | number | 0.4 | Amount of smaller crossing waves riding on the swell. |
brightness | number | 1 | Overall brightness of the pixels. |
glow | number | 1 | Light along the horizon. |
haze | number | 0.7 | Soft atmosphere hugging the horizon. 0 leaves the sky clear. |
bloom | number | 0.5 | Soft glow around the brightest pixels on a dark backdrop. |
focus | number | 0.25 | Distance held in sharp focus, from 0 (nearest) to 1 (the horizon). |
aperture | number | 0.35 | Depth of field. Higher values soften pixels away from the focus. |
grain | number | 0.25 | Fine grain over the lit areas. |
interactive | boolean | true | The pointer leaves a wake in the field and a click drops a ripple into it. |
ripples | number | 1 | Strength of the wake and the ripples. |
intro | boolean | true | Light comes up from the horizon toward you on mount. |
paused | boolean | false | Stops the motion. Reduced motion shows a still field. |
dpr | number | 2 | Maximum device pixel ratio of the canvas, capped at 2. |
ref | Ref<CubeHorizonHandle> | None | Gives ripple(x, y, strength) and replay(). |
children | ReactNode | None | Content laid over the effect, such as a hero headline. |
className | string | None | |
style | CSSProperties | None |