# Planet (Andromeda Legacy)

Planet is a component of the free, MIT-licensed Andromeda Legacy design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

A slowly rotating 3D particle sphere built with Three.js, lit from one side, with every particle colored from the Andromeda accent ramp so it follows the system palette. The canvas is transparent, so drop it inside a Card and the void shows through.

- Design system: [Andromeda Legacy](https://aicanvas.me/design-systems/andromeda.md)
- License: MIT
- Install slug: `andromeda-planet`
- Page: https://aicanvas.me/design-systems/andromeda/planet

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-planet
```

Needs a free AI Canvas account; signed out, the command writes a placeholder (an `AccountRequired` notice) instead.

Every Andromeda Legacy component at once: `npx shadcn@latest add @aicanvas/andromeda`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda/components/Planet.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { Planet } from '@/components/aicanvas/andromeda/components/Planet'
```

## Example

```tsx
import { Planet } from '@/components/aicanvas/andromeda/components/Planet'

<div style={{ position: 'relative', width: 320, height: 320 }}>
  <Planet particleCount={4000} />
</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `particleCount?` | `number` | `6000` | Number of surface particles; 6000 reads dense at 320 to 480px. |
| `particleSize?` | `number` | `0.028` | Per-particle point size in world units. |
| `rotationSpeed?` | `number` | `0.0035` | Auto-rotation speed in radians per frame (assumes about 60fps). |
| `paused?` | `boolean` | `false` | When true, the planet does not auto-rotate. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

## More Andromeda Legacy components

- [Progress Bar](https://aicanvas.me/design-systems/andromeda/progress-bar.md)
- [Radar Chart](https://aicanvas.me/design-systems/andromeda/radar-chart.md)
- [Radio](https://aicanvas.me/design-systems/andromeda/radio.md)
- [Search Field](https://aicanvas.me/design-systems/andromeda/search-field.md)
- [Segmented Control](https://aicanvas.me/design-systems/andromeda/segmented-control.md)
