---
title: "Sea of shapes · Labs № 007 — HASIO Studio"
description: "A liquid of little shapes under one line of type: the pointer stirs it, and a press opens its floor so the sea pours back out from the pointer. Inspired by @lusionltd, rebuilt from scratch by HASIO."
canonical: "https://hasiostudio.com/labs/shape-sea"
updated: 2026-11-12
---

# Sea of shapes

HASIO Studio Labs № 007 · 04 Nov 2026 · WebGL · Physics · Interactive

> A liquid of little shapes under one line of type: the pointer stirs it, and a press opens its floor so the sea pours back out from the pointer.

**Credit:** Inspired by [@lusionltd](https://lusion.co) (lusion.co), Lusion. Rebuilt from scratch by HASIO — no code or assets reused.

## Try it

- Full screen: [https://hasiostudio.com/labs/shape-sea/play](https://hasiostudio.com/labs/shape-sea/play)

## What it does

Hundreds of little shapes fill the screen like water: rings, pills, dots and the letters of HASIO.

Move through them to stir them. Press, or tap, and the sea pours back out from where you are.

## How we built it

1. **01 — A liquid, one shape per drop** It is a particle-in-cell fluid on the CPU: 1600 shapes at 1440×900 on a 56×36 grid, pressure solved 60 times a step, kept three radii apart. To the solver every shape is a disc; the plus, the rings, the pills and the letters are only drawn. Ten families, one instanced draw each, no allocation in the frame.
2. **02 — Measured on the original, frame by frame** We stepped Lusion’s page one 1/60 s at a time and read its simulation’s own arrays. A still pointer clears 15.6 px plus a shape’s radius, a fast one 78 px, and shapes inside it take twice its speed. A 100 ms click recycles 97 shapes, one bottom row; holding pours 802 a second.
3. **03 — Same numbers in, same sea out** Given the same random numbers and the same pointer, our solver puts every shape where the original’s does: over six seeds, both looks, at 1440×900 and 390×844, the depth, the waves after a pass, the click and the hold all come out identical. Three details, found by stepping the two side by side, made the difference: each shape is pushed off its neighbours from where it stood when its pass began, neighbours are looked for in cells 2.2 radii wide, and a finger’s speed on landing is measured from where it last lifted.
4. **04 — A click adds nothing** Pressing opens the floor. Every shape that sinks through it pours again from the pointer, at up to 2000 a second, so a held press is a waterfall through the sea and the count never changes. No cap, no fading, nothing to clean up.
5. **05 — Our shapes, our letters** The hero’s + and ○, a tilted ring of the Morb’s gimbal, a pill, a dot, and H A S I O in geometric letters drawn from bars and arcs. Not Cabinet’s outlines: its licence forbids extracting them.
6. **06 — Extras, on top of the original** Three things the original does not do. On a phone a tap drops shapes (its phones drop nothing); Space or Enter drops them from above; and the play view switches between the two looks, Paper and Orange, which the original keeps on two separate pages.

## Make your own

The prompt:

> Build a sea of small shapes that behaves like a liquid, under one large line of type: a 2D particle-in-cell fluid on the CPU, one particle per shape, drawn with one instanced WebGL draw call per shape family.

Size the tank to the screen: 2 units wide, the grid about 55 cells across at 1440 px (fewer on a phone), particle radius 0.2 of a cell, centres kept 3 radii apart, 60 pressure iterations, pure PIC so it sloshes and calms. Pour every shape from the centre of the screen at 2000 a second when it first appears.

The pointer is a solid disc: about 16 px when still, growing to 78 px when fast; shapes inside are pushed to its rim and given twice its velocity. Pressing lifts the disc and opens the floor: shapes that sink through it pour again from the pointer, so the count never changes. On a phone a held finger stirs with a fixed 28 px disc.

Shapes spin when they move and stop when the sea is still. Draw the text in front of every shape. Pause off screen and in a hidden tab, show a still settled sea with reduced motion, and clean up everything on unmount.

Code: going public soon. The prompt is free.

Made with: three.js, WebGL2, TypeScript, GSAP, React.

## Want this on your site?

WhatsApp [+91 80075 25253](https://wa.me/918007525253?text=Hi%20HASIO%2C%20I%20saw%20Labs%20%E2%84%96%20007%20%E2%80%9CSea%20of%20shapes%E2%80%9D%20on%20your%20site.%20I%E2%80%99d%20like%20something%20like%20it%20on%20mine.), or [ask your AI about us](https://hasiostudio.com/brief).
