Skip to content

City lights (city-lights)

City: a sprawling grid of street lights, glowing boulevards and soft foreground bokeh below the horizon.

{
  "$schema": "https://aurora.goatsoft.io/schema/v1.json",
  "format": "aurora",
  "version": 1,
  "name": "City lights starter",
  "palette": [
    "oklch(0.07 0.02 255)",
    "oklch(0.86 0.14 75)",
    "oklch(0.88 0.11 215)"
  ],
  "layers": [
    {
      "type": "city-lights"
    }
  ]
}

This is presets/starters/city-lights.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 urban groundoklch(0.07 0.02 255)
1Warm street and boulevard lightsoklch(0.86 0.14 75)
2Cool accent lights and bright intersectionsoklch(0.88 0.11 215)

Parameters

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

NameLabelDefaultRangeWhat it does
horizonHorizon0.320.1 to 0.75Height of the urban sprawl from the bottom of the canvas.
densityDensity0.70.1 to 1How much of the basin is filled with street and building lights.
streetsBoulevards0.60 to 1Brightness of the arterial roads and moving traffic streams.
bokehBokeh0.450 to 1Soft out-of-focus light halos in the foreground.
twinkleShimmer0.450 to 1Heat-haze shimmer across distant lights.
speedSpeed0.250 to 2How fast traffic flows and distant lights shimmer.
seedSeed00 to 100A different street grid.

Implementation note

Built on the shared noise library: fbm, hash.