setColor2 method

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

Sets a color with a specific alpha value.

@param color @param alpha from 0-255

Implementation

void setColor2(ui.Color color, int alpha) {
  setColor1(ui.Color.fromARGB(alpha, color.red, color.green, color.blue));
}