sample method

List<Color> sample(
  1. List<Offset> normals
)

Implementation

List<Color> sample(List<Offset> normals) => normals
    .map((e) => getColorNormalized(e.dx.clamp(0, 1), e.dy.clamp(0, 1)))
    .toList();