# Constellation

A configurable particle program executed by the host WebGPU renderer.

Source: https://legend.so/slides/effects/constellation/

Legend Slides: Preview.

[← All effects](https://legend.so/slides/effects/)

[Constellation preview](https://legend.so/slides/effects/previews/constellation/232ac21dfb731b3361eef1d7e45dee3d8a1d1bef068b04ebbf19197120c1ee71.mp4)

Video recorded in Legend Slides for macOS (development build).

[Install in Slides](legend-slides://effects/install?pack=particles&version=1.0.0)[Open example in Slides](legend-slides://effects/example?effect=constellation)[Download example](https://legend.so/slides/effects/examples/constellation/e639f8b0992df9e02129418d932fd939ce23935282eb91fdf0bcf1d51814f78e.mdx)

Requires a Legend Slides build with effect installation support. Installs the particles pack (1.0.0, 15 KB source) and its dependencies. macOS host capabilities: reanimated, webgpu. Installed decks work offline.

## Use it in a deck

```mdx
---
title: Constellation
---

import { View, Text } from "react-native";
import { createConstellation } from "slides:particles/Constellation";

export const field = createConstellation({particleCount: 1024,rows: 5});

# Constellation

<View style={{ width: 1696, height: 650 }}>
<TypeGPUShader code={field.program} particleCount={field.particleCount} particles width={1696} height={650} />
</View>
```

## Configure

**particleCount**

Choose particle density; keep it paired with the returned program.

**speed / scale**

Adjust shared-clock speed and cloud geometry.

Only imported effects enter the compiled deck. [Installation and versioning →](https://legend.so/slides/effects/installation/)

[View Markdown](https://legend.so/slides/effects/constellation.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Constellation&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Fconstellation%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
