vaporwaveKeySamplesOf function

List<int> vaporwaveKeySamplesOf(
  1. List<int> stops
)

The plain surfaces a key is seen against: keys only ever cover the floor (the painter puts the horizon above the keypad in every layout), so the two floor stops, the floor gradient between them and the grid colour. The colours in between the grid and the floor, which the painter shows too, are vaporwaveKeyMixSamplesOf.

Implementation

List<int> vaporwaveKeySamplesOf(List<int> stops) {
  final s = [for (final c in stops) c | 0xFF000000];
  return [
    s[6],
    s[7],
    for (var k = 1; k <= 3; k++) _mix(s[6], s[7], 4 - k, k, 4),
    s[8],
  ];
}