# Newspapers

> The day's papers on a table: a pile of folded newspapers with headlines, photos and columns, and magazines fanned beside it, as one instanced mesh. Seeded covers. Decorative.

## Add it

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

Pulls `@runek/core@^0.18.0`, `three@^0.184.0`.

## Use it

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

<Newspapers position={[0, 0, 0]} papers={2} magazines={3} seed={1} />
```

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

```json
{ "type": "Newspapers", "props": { "position": [0, 0, 0], "papers": 2, "magazines": 3, "seed": 1 } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `papers` | `number` | `2` | Folded newspapers in the pile, 0 to 4. |
| `magazines` | `number` | `2` | Magazines fanned beside it, 0 to 4. |
| `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/newspapers.json](https://runek.nullorder.org/r/components/newspapers.json): Self-contained JSON: inlined source plus resolved dependencies, exactly what `runek add newspapers` fetches.

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