Skip to content
PixiKit

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
NameTypeDefaultDescription
linesColorstring"#4d4757"Color of the grid lines. Light mode defaults to a pale gray.
scanColorstring"#7dd3fc"Color of the scan, its trail, the points and the click ping. Light mode defaults to a deeper blue.
cellsnumber8Number of grid cells from the floor to the ceiling.
lineThicknessnumber1Thickness of the grid lines in pixels.
lineStyle"solid" | "dashed" | "dotted""solid"Style of the grid lines.
depthnumber3How deep the room goes, relative to its height. High values turn it into a long corridor.
depthFadenumber0.6How much the room fades into the distance, from 0 (evenly bright) to 1 (gone by the back wall).
parallaxnumber1How far the view shifts as the cursor moves, as if you were moving your head in front of a window. 0 keeps it still.
shadingnumber0.7Soft light and corner shadows on the walls, from 0 (pure wireframe) to 1.
reflectionnumber0.35How much the glossy floor reflects the scan and pings, from 0 to 1.
pointsbooleantrueScatters 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.
scanDurationnumber2.4Seconds each scan takes to cross the room.
scanDelaynumber1.6Seconds between scans.
scanWidthnumber1Thickness of the scan line, from 0.2 to 5.
trailnumber0.5How long the walls keep glowing behind the scan, from 0 to 1.
glownumber0.6Bloom around the scan line and points, from 0 to 1.5.
autoScanbooleantrueRuns scans on a loop. Turn it off to scan only on click.
interactivebooleantrueMoves 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.
enableWebcambooleanfalseMoves the view with your head through the webcam, where the browser has a built-in face detector.
showPreviewbooleanfalseShows a small camera preview with the tracking status while the webcam is on.
modelsPathstringNoneKept for parity: the built-in face detector needs no model files, so this is not read.
enableGyrobooleanfalseMoves the view as a phone or tablet tilts. iOS asks for permission on the first tap.
introbooleantrueReveals the room with a first scan on mount.
lightModebooleanfalseRenders a bright room with dark shading for light backgrounds.
dprnumberNoneMaximum device pixel ratio, capped at 2.
classNamestringNone
styleCSSPropertiesNone

Related