WithAlpha
Creates a new color with the same color components but a different alpha value This function can be particulary useful if you wish to create gradients from an opaque version of a color to a rather transparent one. Also in some cases you might wish to not to modify the alpha value of the color but to get a modified copy of the color instead. Examples // Get a 30% opaque red color //
Rgba color = Rgba::RED.WithAlpha( 0.30 ); // Get a 70% opaque red color // Rgba otherColor = color.WithAlpha( 0.70 ); Other functions of the class Rgba
Questions about WithAlpha? Click here. |