# NeonStrip

> A neon tube along local X: a white-hot core in a coloured sleeve with a soft halo, glowing at any hour. Decorative; light washes nearby walls in its colour through the world's light pool.

## Add it

```bash
npx @runek/cli add neon-strip
```

Pulls `@runek/core@^0.18.0`.

## Use it

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

<NeonStrip position={[0, 0, 0]} length={2} color="#2fd8ff" light={true} />
```

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

```json
{ "type": "NeonStrip", "props": { "position": [0, 0, 0], "length": 2, "color": "#2fd8ff", "light": true } }
```

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `length` | `number` | `2` | Length along local X, in units, centred on the origin. |
| `color` | `color` | `"#ff2fb3"` | The glow. |
| `thickness` | `number` | `0.03` | Tube diameter, in units. |
| `light` | `boolean` | `false` | Cast real light as well as glowing, from the middle of the tube. Leave it off on most strips: the world lends real lights to only a few emitters at a time. |
| `intensity` | `number` | `3` | The real light's strength, with `light`. How bright the tube itself looks is the world's `tube` luminance level. |
| `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. |

## Registry manifest

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

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