# TikiTorch

> A bamboo tiki torch with a woven head and a flickering flame and light, for a beach path or a garden. Can burn only after dusk.

## Add it

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

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 { TikiTorch } from './runek/TikiTorch'

<TikiTorch position={[0, 0, 0]} seed={1} />
```

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

```json
{ "type": "TikiTorch", "props": { "position": [0, 0, 0], "seed": 1 } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `height` | `number` | `1.7` | Height to the top of the head, in units. |
| `color` | `color` |  | Bamboo pole and joints. |
| `headColor` | `color` |  | Woven head and bindings. Defaults to the palette's `bark`. |
| `flameColor` | `color` | `"#ff7a1a"` | The outer flame. |
| `intensity` | `number` | `6` | Light strength; it flickers around this. |
| `on` | `boolean` | `true` | Burning, or cold. |
| `nightOnly` | `boolean` | `false` | Burn only while the world's sun is down. |
| `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` | `1` | Seed for the deterministic variation: same seed, same result. |

## Registry manifest

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

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