transparent

fun transparent(factor: Float): Color

Returns a new Color instance with the alpha component adjusted by the specified factor.

Return

A new Color instance with the adjusted alpha component.

Parameters

factor

The factor to adjust the alpha component (0.0 to 1.0).