Art / Particles & force fields in WebGL
Garden of Gravity
Place a point.
Let the flow draw.
A WebGL artwork where points of attraction and repulsion redirect particles, growing trails that resemble luminous flowers and vines. Instead of drawing lines directly, visitors shape a force field that generates patterns. Each garden can be saved as a composition and exported as JSON.
View the live project (Japanese)An independent project.
Shape the environment.
Let patterns emerge.
Visitors place points but cannot draw the lines themselves. Attraction and vortices bend the flow, while overlapping trails form patterns like flowers and vines.
Two attraction points are present from the start, sustaining vortices that turn in opposite directions. The garden is already moving when it opens, inviting visitors to watch before doing anything.
Trails of light
against the dark.
A nearly solid blue-black background has a subtle radial gradient brightening its center. Particles use additive blending, with fine lines that keep the center from washing out to white.
Japanese Mincho serif type is used for the title and settings headings, with sans-serif text for control buttons. Attraction points are circles marked with a plus, while repulsion points are rings marked with a minus, so they can be distinguished without relying on color.
Place, move
and save a garden.
A short press places an attraction point; a long press places a repulsion point. Drag points to move them, or switch to view mode to rotate the camera. Up to eight points can be placed and edited even while paused.
Settings cover trail duration, speed, color and quality, alongside three preset compositions. Saves retain the composition and generation parameters, not an exact instant of particle motion. Data stays in the browser or a JSON file and is not sent to a server.
A smaller screen.
More room for the garden.
On narrow screens, the bottom controls are limited to attraction, repulsion, view mode and settings. Settings move into a bottom sheet, and the title shrinks to leave more room for the garden.
Project details
- Version
- 1.0.0
- Project type
- Independent project
- Scope of work
- Planning, design & development
- Technologies
- TypeScript / three.js / Vite
- Supported screen sizes
- Desktop, tablet & mobile