rgbValue method

int rgbValue(
  1. Color color
)

Gets the color Value

Implementation

int rgbValue(Color color) {
  return ((color.a * 255).toInt() << 24) |
      ((color.r * 255).toInt() << 16) |
      ((color.g * 255).toInt() << 8) |
      (color.b * 255).toInt();
}