SetColor The alpha value of the color controls the opacity of the printed text. The higher the alpha value is, the more visible the text will be. For more information about alpha values see the definition of Bitmap. Examples TextRenderer renderer( ... );
// Sets the color of the font to black // renderer.SetColor( Rgba::BLACK ); // Sets the color of the font to light gray // renderer.SetColor( Rgba( 0.8, 0.8, 0.8 )); // Sets the color of the font to light gray but with the opacity of 30% // renderer.SetColor( Rgba( 0.8, 0.8, 0.8, 0.30 )); Other functions of the class TextRenderer
Questions about SetColor? Click here. |