---
title: "orbitSpotsAccum"
description: "The spots of one color orbiting the band, as coverage at this pixel."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.edgeGlow"
categorySlug: "effects-edgeglow"
categoryTitle: "Edge glow"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/edgeGlow.ts#L123"
---

# orbitSpotsAccum

The spots of one color orbiting the band, as coverage at this pixel.

```ts
orbitSpotsAccum(
  angle01: number,
  border: number,
  animTime: number,
  beat: number,
  spotsF: number,
  spotSize: number,
  pulse: number,
  intensity: number,
  softness: number,
  seed: number,
  colorIdxF: number,
): v2f
```

Import `effects` from `shaders/std` and use `effects.edgeGlow.orbitSpotsAccum`.

Call it once per color. Takes the angle and band from `edgeGlowBand`, the layer's clock, the shared `beat`, `spots` (1 to 5 per color), `spotSize` (0 to 1), `pulse` (0 to 1), `intensity` (0 to 1), `softness`, `seed` and the color's index. Returns a pair for `edgeGlowAccumColorFor`: `.x` the layered coverage and `.y` the additive sum used for bloom.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `args` | `[angle01: number, border: number, animTime: number, beat: number, spotsF: number, spotSize: number, pulse: number, intensity: number, softness: number, seed: number, colorIdxF: number]` |  |

## Example

```ts
const sectors = call(orbitSpotsAccum, 'orbitSpotsAccum', [band.member('y'), band.member('x'), t, beat, uniforms.spots, uniforms.spotSize, uniforms.pulse, uniforms.intensity, uniforms.softness, uniforms.seed, floatE(colorIndex)])
```

## See also

- [`edgeGlowBand`](/docs/primitives/effects-edgeglow/edgeglowband) — The glowing band around the shape's edge, with drifting smoke, plus the angle around the shape.
- [`edgeGlowAccumColorFor`](/docs/primitives/effects-edgeglow/edgeglowaccumcolorfor) — The fold step for one color space: adds one color's spots to the running state.

## Used by

[LightEdge](/docs/components/lightedge)