# Pie Time: Slice by Dragging

- Author: @bluumik
- Card: Creator prompt
- Theme: Objects & products
- Stack: Not rebuilt
- Interaction: Pointer
- Licence: Credited link (Shared publicly by the author; full text with credit, removed on request)
- Verified: not yet
- Original post: https://x.com/bluumik/status/2114329812894453947

## Original prompt

```text
PROMT- Build a single-file interactive 3D web experience called "Pie Time." using Three.js (WebGL), all procedural, zero external assets. A whole pie sits on a glass plate, and the user slices it by dragging a knife along pre-marked score lines.

LOOK AND FEEL
- Warm dark brown to charcoal background with a soft colored glow behind the plate that matches the current filling color.
- Serif title "Pie Time." top left with a small italic hint under it: "Drag the knife along a score line to cut."
- A large round glass plate with a thin white rim, seen from a three-quarter top view, with a soft shadow.
- Small refined UI. Cozy bakery feeling with a premium editorial look.

THE PIE
- A round pie with a thick golden-cream crust, a slightly raised outer rim, a smooth glossy top and a circle of whole berries or cherries scattered across the surface.
- Visible score lines dividing the top into equal wedges (default 10), drawn as thin engraved grooves from the center to the rim.
- Material: soft pastry with subtle subsurface warmth, glossy filling highlights on the berries, and a small crumb texture on the crust edge.
- Filling colors: red, purple, yellow, orange, green and pink. Switching smoothly recolors the filling, the berries and the ambient room glow.

CUTTING INTERACTION
- A kitchen knife with a pink handle and a long steel blade follows the cursor or finger.
- Drag the knife along a score line to cut. A thin dark cut line appears as the blade passes, and when a line is fully cut the wedge separates.
- Cut wedges lift gently off the plate with a soft jelly-like wobble, rotate in the air, then drift away or fade after a moment.
- If all wedges are cut, the plate is left bare with the faint score pattern, and a small caption appears ("Fresh out of pie.").
- Slices keep their cross-section visible (crust, filling layer, top glaze) when seen from the side.

CONTROLS
- A pink pill button "New pie" that bakes a fresh pie with a short drop-in animation (also Space bar).
- Slice count stepper (4 to 16) with minus and plus buttons, regenerating the score lines.
- Filling color swatches along the bottom left.
- Top right buttons: "Room view" and "Table view" (a wider camera and a closer camera) plus "Settings".
- Settings panel: jelly softness slider, knife size, auto-rotate toggle, sound on or off.
- Keyboard: Space for a new pie, plus and minus for slice count, T to switch views.

SOUND AND POLISH
- Soft slicing swishes, gentle crust crunches and warm plops synthesized with WebAudio (no files), tied to cut speed.
- 60 fps, adaptive pixel ratio, filmic tone mapping, soft contact shadows, subtle bloom on berry highlights.
- Smooth camera orbit with inertia and an optional gentle auto-rotate.
- Works on desktop and mobile touch. Clean, commented code in one HTML file with constants grouped at the top.
```

Not rebuilt by 3dmotion yet. Credit stays with @bluumik.

Prompt by @bluumik (https://x.com/bluumik/status/2114329812894453947) via 3dmotion.io/e/pie-time-slice-by-dragging
