Planet

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.

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-planet

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
particleCountnumber6000Number of surface particles; 6000 reads dense at 320 to 480px.
particleSizenumber0.028Per-particle point size in world units.
rotationSpeednumber0.0035Auto-rotation speed in radians per frame (assumes about 60fps).
pausedbooleanfalseWhen true, the planet does not auto-rotate.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

More Andromeda components