Fiber Tunnel
A swirling fibre-optic tunnel where comets of light race along the fibres into the depth. The pointer steers its far end and a click sends a ring of light down it.
pixikit.com/docs/effects/fiber-tunnel
Customize
Cable color
Pulse color
Tunnel color
Tunnel opacity0.00
Speed0.10
Flow direction
Pulse speed2.0
Pulse length0.28
Pulse blend0.60
Pulse width1.00
Pulse density0.50
Cable count56
Thickness0.35
Rim width0.15
Waviness0.30
Sway0.50
Bend0.40
Size1.00
Center x0.00
Center y0.00
Glow1.00
Fade near0.50
Fade far2.00
Brightness1.00
Color variance
Grain
Grain intensity0.05
Opacity1.00
Mouse interaction
Mouse strength0.10
Click surge
Intro
Variation0
Light mode
Background color
Dpr2.00
Props
38| Name | Type | Default | Description |
|---|---|---|---|
cableColor | string | "#ffffff" | The colour of the fibres; any CSS colour. |
pulseColor | string | "#ffffff" | The colour of the light pulses. |
tunnelColor | string | "#ffffff" | The colour of the soft glow around the fibres, shown when tunnelOpacity is above 0. |
tunnelOpacity | number | 0 | The strength of the soft glow that tints the tunnel walls. |
speed | number | 0.1 | The overall speed of the tunnel. |
flowDirection | "inward" | "outward" | "inward" | Whether the pulses race into the tunnel or rush out toward you. |
pulseSpeed | number | 2 | How fast the pulses travel. |
pulseLength | number | 0.28 | The length of each pulse and its tail. |
pulseBlend | number | 0.6 | The softness of the pulses, from crisp sparks at 0 to long soft streaks at 1. |
pulseWidth | number | 1 | The width of the pulses relative to the fibres. |
pulseDensity | number | 0.5 | How many pulses travel at once, 0 to 1. |
cableCount | number | 56 | The number of fibres around the tunnel. |
thickness | number | 0.35 | The thickness of the fibres. |
rimWidth | number | 0.15 | How far the glow spreads around each pulse. |
waviness | number | 0.3 | How much the fibres swirl along the tunnel. |
sway | number | 0.5 | How much the tunnel slowly rocks back and forth. |
bend | number | 0.4 | How much the far end of the tunnel drifts and curves. |
size | number | 1 | The scale of the tunnel. |
centerX | number | 0 | The horizontal offset of the tunnel centre, -1 to 1. |
centerY | number | 0 | The vertical offset of the tunnel centre, -1 to 1. |
glow | number | 1 | The strength of the glow around the pulses. |
fadeNear | number | 0.5 | How far from the centre the tunnel fades in; higher keeps the middle clear. |
fadeFar | number | 2 | The distance at which the tunnel fades out at the edges. |
brightness | number | 1 | The overall brightness. |
colorVariance | boolean | true | Gives every fibre a slightly different brightness. |
grain | boolean | false | Adds a fine film grain to the light. |
grainIntensity | number | 0.05 | The strength of the grain. |
opacity | number | 1 | The opacity of the whole effect. |
mouseInteraction | boolean | true | Steers the far end of the tunnel toward the pointer. |
mouseStrength | number | 0.1 | How far the pointer steers the tunnel. |
clickSurge | boolean | true | A click sends a ring of light down the tunnel. |
intro | boolean | true | Grows the tunnel out from the centre on mount. |
variation | number | 0 | Picks a different arrangement of fibres and pulses. |
lightMode | boolean | false | Draws the tunnel as ink, for light backgrounds. |
backgroundColor | string | "transparent" | A solid backdrop; transparent lets the page show through. |
dpr | number | 2 | The highest device pixel ratio drawn, capped at 2. |
className | string | None | |
style | CSSProperties | None | Inline styles for the canvas. |