# Delta

A parallel delta in isometric, solved with the closed-form delta IK. Change the geometry and the arms behave the way that machine would.

> For the complete index, see [llms.txt](https://robocn.dev/llms.txt). A Markdown version of any page is available by appending `.md` to its URL or by sending an `Accept: text/markdown` header.

## Install

```bash
bunx --bun shadcn@latest add https://robocn.dev/r/delta-arm.json
```

Registry item: `delta-arm` · [`https://robocn.dev/r/delta-arm.json`](https://robocn.dev/r/delta-arm.json)

## Usage

```tsx
<DeltaArm
  geometry={{ base: 62, platform: 18, upper: 17, lower: 58 }}
  behavior="orbit"
  spin={32}
  tilt={0.45}
/>
```

## Props

| name | type | default | description |
| --- | --- | --- | --- |
| `view` | `"plan" | "front" | "profile" | "iso"` | `"iso"` | Where the camera stands. One machine, four projections: straight down, straight on, side elevation, or three-quarter from above. |
| `geometry` | `Partial<DeltaGeometry>` | `{ base: 62, platform: 18, upper: 17, lower: 58 }` | Triangle sides and arm lengths. Short biceps keep the elbows inside the plate. |
| `target` | `Vec3 | ((clock: number) => Vec3) | null` | — | Platform position: x and z across the workspace, y below the plate (negative). |
| `height` | `number` | — | Height the platform holds when a behaviour drives it. |
| `spin / tilt` | `number` | `32 / 0.45` | Viewing angle: rotation about the vertical, then how far the view tips. |
| `showTarget` | `boolean` | — | Platform readout, and a warning when a target falls outside the workspace. |
| `variant` | `"solid" | "outline" | "blueprint" | "wire"` | `"solid"` | How the machine is painted. Geometry never changes between variants. |
| `size` | `"xs" | "sm" | "md" | "lg" | "xl" | number` | `"md"` | Rendered width in pixels, or a step on the scale. |
| `thickness` | `number` | `1` | Limb weight multiplier, independent of size. |
| `speed` | `number` | — | Tip travel in world units per second. |
| `animate` | `boolean` | `true` | Off snaps to a fixed goal or samples a scripted path at phase, then stops. Reduced-motion preference does the same. |
| `paused` | `boolean` | `false` | Freeze in place. |
| `phase` | `number` | `0` | Seconds of offset, so a row of machines breaks step. |
| `interactive` | `boolean` | `false` | Press and drag inside the frame to send the tool there; release and it eases back into its behaviour. Hover is not available on a touch screen, so this is how one drives it. |
| `onTargetChange` | `(target: Vec2 | null) => void` | — | The dragged goal in world units, and null on release. |
| `color` | `string` | `var(--robot-shell)` | Body panels — the colour the machine reads as. |
| `accent` | `string` | `var(--robot-accent)` | Status colour: tip light, live tool, readouts. |
| `metal` | `string` | `var(--robot-metal)` | Bare machined parts: collars, bolts, tool bodies. |
| `dark` | `string` | `var(--robot-dark)` | Cast joints, base, shadow side. |
| `palette` | `Partial<RobotPalette>` | — | Override any subset of roles at once, including glow and grid. |

## Source

- `src/components/ui/delta-arm.tsx`
