withAlpha method

LinearColor withAlpha(
  1. double alpha
)

This colour with its coverage replaced by alpha, for a caller fading something in or out.

Implementation

LinearColor withAlpha(double alpha) => LinearColor(r, g, b, alpha);