getConvexGradients static method

List<Color> getConvexGradients(
  1. Color baseColor,
  2. int depth
)

Implementation

static List<Color> getConvexGradients(Color baseColor, int depth) {
  return [
    getAdjustColor(baseColor, depth),
    getAdjustColor(baseColor, 0 - depth),
  ];
}