withAlpha method

HSVColor withAlpha(
  1. double alpha
)

Returns a copy of this color with the alpha parameter replaced with the given value.

Implementation

HSVColor withAlpha(double alpha) {
  return HSVColor.fromAHSV(alpha, hue, saturation, value);
}