claymorphismSceneSamples function
Guardrail background samples of a BackgroundKind.claySoft scene: its nine stops plus the ½ mixes of claySceneMixPairs (22 colours). Null unless the scene has exactly nine colours.
Implementation
List<int>? claymorphismSceneSamples(BackgroundSpec bg) {
if (bg.colors.length != 9) return null;
final c = [for (final x in bg.colors) x | 0xFF000000];
return [...c, for (final (i, j) in claySceneMixPairs) _mixHalf(c[i], c[j])];
}