fromAlpha
Creates a new Color that has the same red, green, and blue components of the specified color, but with the specified alpha value.
const translucentRed = Color.fromAlpha(Color.RED, 0.9);
Content copied to clipboard
Return
The modified result parameter or a new Color instance if one was not provided.
Parameters
color
The base color
alpha
The new alpha component.
result
The object onto which to store the result.