vaporwaveSceneSamples function

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

Guardrail background samples of the family's scene (BackgroundKind.vaporSunset): the ten colours, the ¼ / ½ / ¾ mixes of every pair the painter blends or anti-aliases, the horizon glow and the horizon haze (vaporwaveSamplesOf). Null (the generic stops) for a malformed scene.

Implementation

List<int>? vaporwaveSceneSamples(BackgroundSpec bg) =>
    bg.kind == BackgroundKind.vaporSunset && bg.colors.length == 10
    ? vaporwaveSamplesOf(bg.colors)
    : null;