Returns a new color with alpha value aRatio * 255.
aRatio
Color withAlphaRatio(double aRatio) { return Color.fromARGB((255 * aRatio).toInt(), red, green, blue); }