cyberpunkSceneSamples function

List<int>? cyberpunkSceneSamples(
  1. BackgroundSpec bg
)

Guardrail background samples of the family's scene (BackgroundKind.cyberGrid): cyberGridSamples. Null (the generic sampling) for a malformed scene without its five colours; cyberScene rejects those.

Implementation

List<int>? cyberpunkSceneSamples(BackgroundSpec bg) =>
    bg.colors.length == 5 ? cyberGridSamples(bg.colors) : null;