Particle Type
A word assembled from drifting light
About this scene
Glyphs are drawn to an offscreen canvas and sampled into 22,000 particles. Each particle arrives on its own schedule from a scattered cloud, flows on a smooth field once in place, parts around the pointer and scatters on click before reassembling. Add ?text=YOUR+WORD to the URL to change the word.
How it is built
- 01
Text to points
The word is rendered once to a hidden canvas; bright pixels become target positions. The font size shrinks until the word fits the canvas width.
- 02
Staggered arrival
Each particle has a seed that offsets when it starts moving, so the word condenses from the cloud instead of snapping into place.
- 03
Touch it
The pointer position is projected onto the text plane and pushes particles aside in the vertex shader; a click restarts the assembly.
Questions
- Can I use my logo instead of text?
- Yes. Draw an image to the same canvas instead of text; any bright pixel becomes a particle target.
- How many particles can it take?
- All motion is in the vertex shader, so 50k+ is fine on desktop GPUs. Keep it near 20k for phones.
ThreeJS.net

