Skip to content
PixiKit

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
NameTypeDefaultDescription
cableColorstring"#ffffff"The colour of the fibres; any CSS colour.
pulseColorstring"#ffffff"The colour of the light pulses.
tunnelColorstring"#ffffff"The colour of the soft glow around the fibres, shown when tunnelOpacity is above 0.
tunnelOpacitynumber0The strength of the soft glow that tints the tunnel walls.
speednumber0.1The overall speed of the tunnel.
flowDirection"inward" | "outward""inward"Whether the pulses race into the tunnel or rush out toward you.
pulseSpeednumber2How fast the pulses travel.
pulseLengthnumber0.28The length of each pulse and its tail.
pulseBlendnumber0.6The softness of the pulses, from crisp sparks at 0 to long soft streaks at 1.
pulseWidthnumber1The width of the pulses relative to the fibres.
pulseDensitynumber0.5How many pulses travel at once, 0 to 1.
cableCountnumber56The number of fibres around the tunnel.
thicknessnumber0.35The thickness of the fibres.
rimWidthnumber0.15How far the glow spreads around each pulse.
wavinessnumber0.3How much the fibres swirl along the tunnel.
swaynumber0.5How much the tunnel slowly rocks back and forth.
bendnumber0.4How much the far end of the tunnel drifts and curves.
sizenumber1The scale of the tunnel.
centerXnumber0The horizontal offset of the tunnel centre, -1 to 1.
centerYnumber0The vertical offset of the tunnel centre, -1 to 1.
glownumber1The strength of the glow around the pulses.
fadeNearnumber0.5How far from the centre the tunnel fades in; higher keeps the middle clear.
fadeFarnumber2The distance at which the tunnel fades out at the edges.
brightnessnumber1The overall brightness.
colorVariancebooleantrueGives every fibre a slightly different brightness.
grainbooleanfalseAdds a fine film grain to the light.
grainIntensitynumber0.05The strength of the grain.
opacitynumber1The opacity of the whole effect.
mouseInteractionbooleantrueSteers the far end of the tunnel toward the pointer.
mouseStrengthnumber0.1How far the pointer steers the tunnel.
clickSurgebooleantrueA click sends a ring of light down the tunnel.
introbooleantrueGrows the tunnel out from the centre on mount.
variationnumber0Picks a different arrangement of fibres and pulses.
lightModebooleanfalseDraws the tunnel as ink, for light backgrounds.
backgroundColorstring"transparent"A solid backdrop; transparent lets the page show through.
dprnumber2The highest device pixel ratio drawn, capped at 2.
classNamestringNone
styleCSSPropertiesNoneInline styles for the canvas.

Related