Night Drive
A night highway of glowing light trails on a winding road. Click and hold to boost: the trails stretch, the view widens and the air streaks into warp lines.
pixikit.com/docs/effects/night-drive
Customize
Tail colors0 of 10
Head colors0 of 10
Pole colors0 of 10
Curve
Curvature1.00
Speed1.00
Boost3.0×
Fov90°
Boost fov130°
Lanes3
Road width10.0
Median width2.0
Density40
Trail length1.00
Light size1.00
Poles20
Pole height1.0
Dust100
Glow0.60
Reflections0.50
Road opacity0.10
Steer0.35
Road color
Line color
Background
Theme
Interactive
Boosting
Props
32| Name | Type | Default | Description |
|---|---|---|---|
tailColors | string[] | NONE | The colours of the lights moving away on the left road; magentas and violet when empty. |
headColors | string[] | NONE | The colours of the oncoming lights on the right road; cyan and deep blues when empty. |
poleColors | string[] | NONE | The colours of the light poles along both shoulders. |
curve | "straight" | "gentle" | "winding" | "hills" | "racing" | "deep" | "winding" | The shape of the road; switching between curves morphs it smoothly. |
curvature | number | 1 | How strongly the road bends; 0 is straight. |
speed | number | 1 | The cruising speed of the traffic, poles and road markings. |
boost | number | 3 | The speed multiplier while the pointer is held down; the lights stretch into longer trails. |
fov | number | 90 | The camera field of view in degrees. |
boostFov | number | 130 | The field of view while boosting; the camera springs between the two. |
lanes | number | 3 | The lanes on each side of the road. |
roadWidth | number | 10 | The width of each side of the road. |
medianWidth | number | 2 | The width of the strip between the two sides. |
density | number | 40 | The cars on each side of the road, up to 160. |
trailLength | number | 1 | The length of the light trails. |
lightSize | number | 1 | The thickness of the light trails. |
poles | number | 20 | The light poles on each shoulder, up to 80; 0 removes them. |
poleHeight | number | 1 | The height of the light poles. |
dust | number | 100 | The speed streaks flying past in the air, up to 1500; they stretch into warp lines while boosting. |
glow | number | 0.6 | A soft bloom around every light; 0 turns it off. |
reflections | number | 0.5 | How much the lights reflect on the road, like wet asphalt at night. |
roadOpacity | number | 0.1 | The opacity of the road and its markings; reflections fade with it. |
steer | number | 0.35 | How far the camera drifts and turns toward the pointer. |
roadColor | string | "" | The colour of the asphalt; follows the theme when empty. |
lineColor | string | "" | The colour of the lane markings; follows the theme when empty. |
background | string | "" | The colour behind the road; empty keeps the canvas transparent. |
theme | "dark" | "light" | "dark" | Dark renders glowing light trails, light renders crisp coloured trails on a pale road. |
interactive | boolean | true | Click and hold to boost, and let the camera follow the pointer. |
boosting | boolean | false | Turns the boost on from your own code, for example while something loads. |
onBoostStart | () => void | None | Called when the user starts boosting. |
onBoostEnd | () => void | None | Called when the user lets go. |
className | string | None | |
style | CSSProperties | None | Inline styles for the container. |