Engines/FlatRedBallXNA/FlatRedBall/Graphics/Text.cs
/// <summary>
/// Set the RGB properties of this all at once. 0,0,0 is Black, 1,1,1 is White.
/// </summary>
/// <param name="red">0 to 1</param>
/// <param name="green">0 to 1</param>
/// <param name="blue">0 to 1</param>
Set the RGB properties of this all at once.
Set the RGB properties of this all at once .
public void SetColor(float red, float green, float blue)
        {
#if DEBUG
            if(red > 1)
            {
                throw new ArgumentException("Red must be less than 1");
            }
            if (green > 1)
            {
                throw new ArgumentException("Green must be less than 1");
            }
            if (blue > 1)
            {
                throw new ArgumentException("Blue must be less than 1");
            }
#endif
            mRed = red;
            mGreen = green;
            mBlue = blue;
            if (RenderOnTexture)
                UpdateDisplayedText();
        }
public void SetColor ( float red , float green , float blue ) { if DEBUG if ( red > 1 ) { throw new ArgumentException ( " " ) ; } if ( green > 1 ) { throw new ArgumentException ( " " ) ; } if ( blue > 1 ) { throw new ArgumentException ( " " ) ; } endif mRed = red ; mGreen = green ; mBlue = blue ; if ( RenderOnTexture ) UpdateDisplayedText ( ) ; }
Set the RGB properties of this all at once.
Set the RGB properties of this all at once .
red
float
0 to 1
0 to 1
green
float
0 to 1
0 to 1
blue
float
0 to 1
0 to 1