toRGBAi static method

Color toRGBAi(
  1. int r,
  2. int g,
  3. int b, {
  4. int o = 255,
})

(en)Converts the int value specified from 0 to 255 to RGBA.

(ja)0~255で指定したint値をRGBAに変換します。

  • r : red.
  • g : green.
  • b : blue.
  • o : opacity.

Returns Color obj.

Implementation

static Color toRGBAi(int r, int g, int b, {int o = 255}) {
  return Color.fromARGB(o, r, g, b);
}