Skip to content
PixiKit

Star Lattice

A slowly turning globe of clustered nodes wired to their neighbours, lighting up under the pointer.

pixikit.com/docs/effects/star-lattice

Customize

Preset
Colors2 of 10
Background color
Nodes2400
Connections4
Reach0.20
Clustering0.85
Chords0.35
Radius0.40
Origin x0.50
Origin y0.50
Line opacity0.70
Node size0.80
Depth fade0.70
Spin1.00
Tilt18°
Interactive
Draggable
Hover radius0.22
Hover boost1.00
Click pulse
Pulse speed1.20
Seed0
Paused

Props

28
NameTypeDefaultDescription
preset"violet" | "cyan" | "mono" | "rose" | "ink" | "lilac""violet"A color set; colors and backgroundColor follow it until you pass them.
colorsstring[]["#7C6BFF", "#FFE6FA"]Two colors: the network, then the highlight that tints hubs, the pointer glow and click pulses.
backgroundColorstring"#0a0a0a"Color behind the globe. On a light color the network is drawn as ink.
nodesnumber2400Number of nodes, 100 to 2500.
connectionsnumber4Lines each node draws to its nearest neighbours.
reachnumber0.2Longest distance a neighbour line may span, relative to the radius.
clusteringnumber0.85How strongly nodes gather into clusters; 0 spreads them evenly.
chordsnumber0.35Amount of faint long lines that cross the globe.
radiusnumber0.4Radius of the globe, relative to the height.
originXnumber0.5Horizontal position of the center, 0 is the left edge.
originYnumber0.5Vertical position of the center, 0 is the top edge.
lineOpacitynumber0.7Opacity of the lines.
nodeSizenumber0.8Size of the nodes.
depthFadenumber0.7How much the far side of the globe fades.
spinnumber1Rotation speed; negative values turn the other way.
tiltnumber18Tilt of the axis in degrees.
interactivebooleantrueTurns every pointer effect on or off: the highlight, the lean, dragging and click pulses.
draggablebooleantrueDrag to spin the globe. It keeps its momentum and settles back to its spin.
hoverRadiusnumber0.22Size of the area the pointer lights, relative to the height.
hoverBoostnumber1Strength of the pointer highlight. 0 turns it off.
clickPulsebooleantrueEach click sends a pulse from the point you clicked across the whole globe. Rapid clicks stack.
pulseSpeednumber1.2Speed of the click pulse.
seednumber0Picks another arrangement of the network.
pausedbooleanfalseStops the rotation and the twinkle. Dragging and pulses still work.
dprnumber2Upper limit for the device pixel ratio.
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.
childrenReactNodeNoneContent layered above the effect.

Related