setColor3 method

void setColor3 (
  1. Color color,
  2. int alpha
)

Implementation

void setColor3(ui.Color color, int alpha) {
  resetColors();
  alpha = alpha > 255 ? 255 : (alpha < 0 ? 0 : alpha);
  _colors.add(Color.fromARGB(alpha, color.red, color.green, color.blue));
}