Skip to content
PixiKit

Token Flow

Thick glass coins with refracting rims, tumbling through a pattern and flipping when the pointer sweeps past.

pixikit.com/docs/effects/token-flow

Customize

Preset
Colors2 of 10
Background color
Pattern
Count10
Size0.36
Thickness0.22
Bevel0.16
Spacing1.00
Speed1.00
Turn90°
Spin0.00
Twist0.00
Rock42°
Ripple0.22
Drift1.00
Sway1.00
Depth1.00
Tilt12°
Angle0°
Pitch0°
Yaw0°
Center x0.00
Center y0.00
Ior1.45
Dispersion0.50
Density0.40
Frost0.20
Glow1.00
Intensity1.00
Light angle0°
Interactive
Flick1.00
Pulse1.00
Parallax0.50
Paused
Quality1.00

Props

41
NameTypeDefaultDescription
preset"stream" | "ring" | "helix" | "wave" | "grid" | "vortex" | "float""stream"A complete look; the props it sets follow it until you pass them.
colors[string, string]["#5227FF", "#FF9FFC"]Two colors of the light caught in the glass.
backgroundColorstring"#0a0a0a"Color behind the coins.
pattern"stream" | "ring" | "helix" | "wave" | "grid" | "vortex" | "float""stream"Arrangement of the coins.
countnumber10Number of coins.
sizenumber0.36Coin radius, relative to the height.
thicknessnumber0.22Thickness of a coin.
bevelnumber0.16Roundness of the rim.
spacingnumber1Space between coins.
speednumber1Speed of the motion; negative values run it backward.
turnnumber90How far each coin turns over along its path, in degrees.
spinnumber0Steady spin of each coin.
twistnumber0Offset of the spin from one coin to the next.
rocknumber42Rocking of each coin, in degrees.
ripplenumber0.22Wave that runs through the pattern.
driftnumber1Travel of the coins along the pattern.
swaynumber1Gentle bobbing of the coins.
depthnumber1Spread of the pattern toward and away from the viewer.
tiltnumber12Tilt of the pattern in degrees.
anglenumber0Rotation of the pattern in the picture plane, in degrees.
pitchnumber0Camera pitch in degrees.
yawnumber0Camera yaw in degrees.
centerXnumber0Horizontal offset of the pattern.
centerYnumber0Vertical offset of the pattern.
iornumber1.45Index of refraction of the glass.
dispersionnumber0.5How far the glass splits light into colors.
densitynumber0.4How strongly the glass is tinted.
frostnumber0.2Frosted look of the glass.
glownumber1Glow along the rims.
intensitynumber1Overall brightness.
lightAnglenumber0Rotates the studio lighting around the view, in degrees. The key light starts at the upper left.
interactivebooleantrueRespond to the pointer and to touch.
flicknumber1How hard a coin spins when the pointer sweeps across it. Faster sweeps spin it further. 0 turns it off.
pulsenumber1Strength of the flip that spreads from a click. 0 turns it off.
parallaxnumber0.5How much the whole pattern leans toward the pointer.
pausedbooleanfalseFreezes the motion.
qualitynumber1Lower values render faster on slow devices.
refRef<TokenFlowHandle>Nonepulse(x?, y?) sends a flip from a point (0 to 1 on each axis).
childrenReactNodeNoneContent layered above the coins.
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.

Related