fromRGB static method

Color fromRGB(
  1. RGB color
)

Converts RGB color to Color.

Implementation

static Color fromRGB(RGB color) {
  return Color.fromARGB(color.a, color.r, color.g, color.b);
}