Sweep Grid
A wireframe room in perspective with a scan line that sweeps through it, leaving a glowing trail, sparkling points and a reflection on the floor; the view shifts with the cursor and a click pings the walls.
pixikit.com/docs/effects/sweep-grid
Customize
Lines color
Scan color
Cells8
Line thickness1.0
Line style
Depth3.0
Depth fade0.60
Parallax1.00
Shading0.70
Reflection0.35
Points
Scan direction
Scan duration2.4
Scan delay1.6
Scan width1.0
Trail0.50
Glow0.60
Auto scan
Interactive
Click effect
Enable webcam
Show preview
Enable gyro
Intro
Light mode
Props
29| Name | Type | Default | Description |
|---|---|---|---|
linesColor | string | "#4d4757" | Color of the grid lines. Light mode defaults to a pale gray. |
scanColor | string | "#7dd3fc" | Color of the scan, its trail, the points and the click ping. Light mode defaults to a deeper blue. |
cells | number | 8 | Number of grid cells from the floor to the ceiling. |
lineThickness | number | 1 | Thickness of the grid lines in pixels. |
lineStyle | "solid" | "dashed" | "dotted" | "solid" | Style of the grid lines. |
depth | number | 3 | How deep the room goes, relative to its height. High values turn it into a long corridor. |
depthFade | number | 0.6 | How much the room fades into the distance, from 0 (evenly bright) to 1 (gone by the back wall). |
parallax | number | 1 | How far the view shifts as the cursor moves, as if you were moving your head in front of a window. 0 keeps it still. |
shading | number | 0.7 | Soft light and corner shadows on the walls, from 0 (pure wireframe) to 1. |
reflection | number | 0.35 | How much the glossy floor reflects the scan and pings, from 0 to 1. |
points | boolean | true | Scatters points over the walls that sparkle as the scan passes, like a LiDAR capture. |
scanDirection | "forward" | "backward" | "pingpong" | "forward" | Whether the scan travels into the room, out of it, or alternates. |
scanDuration | number | 2.4 | Seconds each scan takes to cross the room. |
scanDelay | number | 1.6 | Seconds between scans. |
scanWidth | number | 1 | Thickness of the scan line, from 0.2 to 5. |
trail | number | 0.5 | How long the walls keep glowing behind the scan, from 0 to 1. |
glow | number | 0.6 | Bloom around the scan line and points, from 0 to 1.5. |
autoScan | boolean | true | Runs scans on a loop. Turn it off to scan only on click. |
interactive | boolean | true | Moves the view with the cursor and lights up the walls under it. |
clickEffect | "ping" | "scan" | "none" | "ping" | What a click does. Ping sends a ring of light across the walls from that spot, scan starts a new scan. |
enableWebcam | boolean | false | Moves the view with your head through the webcam, where the browser has a built-in face detector. |
showPreview | boolean | false | Shows a small camera preview with the tracking status while the webcam is on. |
modelsPath | string | None | Kept for parity: the built-in face detector needs no model files, so this is not read. |
enableGyro | boolean | false | Moves the view as a phone or tablet tilts. iOS asks for permission on the first tap. |
intro | boolean | true | Reveals the room with a first scan on mount. |
lightMode | boolean | false | Renders a bright room with dark shading for light backgrounds. |
dpr | number | None | Maximum device pixel ratio, capped at 2. |
className | string | None | |
style | CSSProperties | None |