# Fountain

> Two-tier stone fountain with gently rippling water (a per-frame bob, no textures).

## Add it

```bash
npx @runek/cli add fountain
```

Pulls `@react-three/fiber@^9.6.1`, `@react-three/rapier@^2.2.0`, `@runek/core@^0.15.0`, `three@^0.184.0`.

## Use it

```tsx
import { Fountain } from './runek/Fountain'

<Fountain position={[0, 0, 0]} />
```

Or as a node in a world file ([worlds as data](https://runek.nullorder.org/docs/worlds-as-data.md)):

```json
{ "type": "Fountain", "props": { "position": [0, 0, 0] } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `position` | `[x, y, z]` | `[0, 0, 0]` | Position [x, y, z] in units (1 unit = 1 m, Y-up). |
| `rotation` | `[x, y, z]` | `[0, 0, 0]` | Euler rotation [x, y, z] in radians. |
| `seed` | `number` |  | Accepted for the component contract; this component has no seeded variation yet. |
| `radius` | `number` | `1.6` | Radius, in units. |
| `color` | `color` | palette `stone` | Stone color; defaults to the world palette's `stone` slot. |
| `waterColor` | `color` | palette `waterShallow` | Water color; defaults to the world palette's `waterShallow` slot. |

## Registry manifest

[https://runek.nullorder.org/r/components/fountain.json](https://runek.nullorder.org/r/components/fountain.json): Self-contained JSON: inlined source plus resolved dependencies, exactly what `runek add fountain` fetches.

Browse the whole catalog in the **[gallery →](https://runek.nullorder.org/gallery)**.
