Skip to content

Radar (radar)

Tech: a rotating radar sweep, range rings and contacts fading into the dark.

{
  "$schema": "https://aurora.goatsoft.io/schema/v1.json",
  "format": "aurora",
  "version": 1,
  "name": "Radar starter",
  "palette": [
    "oklch(0.12 0.025 170)",
    "oklch(0.76 0.15 165)",
    "oklch(0.92 0.08 150)"
  ],
  "layers": [
    {
      "type": "radar"
    }
  ]
}

This is presets/starters/radar.aurora: the generator alone, with its defaults.

Colours

A layer’s colors picks 3 palette colours, in the order below. To recolour part of the background, change the palette colour in that position.

PositionPaintsDefault
0Dark fieldoklch(0.12 0.025 170)
1Sweep and range ringsoklch(0.76 0.15 165)
2Contact highlightsoklch(0.92 0.08 150)

Parameters

Every parameter is optional; one you leave out uses its default.

NameLabelDefaultRangeWhat it does
speedSpeed0.08 /s0 to 0.5Clockwise rotations per second; 0 keeps the sweep still.
scaleScale0.850.3 to 1.5Diameter relative to the shorter canvas side.
ringsRange rings51 to 12Number of evenly spaced range rings.
contactsContacts160 to 24Number of illuminated returns.
persistencePersistence0.60.05 to 1How long the sweep and contacts remain lit.
gridGrid0.450 to 1Brightness of range rings and crosshairs.
seedSeed00 to 100Different contact positions.

Implementation note

Built on the shared noise library: hash.