glassPressedSamples function

List<int> glassPressedSamples(
  1. int face,
  2. int glow,
  3. List<int> bgs
)

The colours a glass face shows under the press glow glow at its peak: the glow composited over the tint over every background sample.

Implementation

List<int> glassPressedSamples(int face, int glow, List<int> bgs) => [
  for (final b in bgs) compositeOver(glow, compositeOver(face, b)),
];