Alpha
Introduction
Code Example
int count = 20;
for (int i = 0; i < count; i++)
{
float maxAlpha = 1.0f;
float alphaValue = (i + 1) * maxAlpha / count;
FlatRedBall.Graphics.Text text =
FlatRedBall.Graphics.TextManager.AddText("Alpha: " + alphaValue);
text.Alpha = alphaValue;
text.Y = -100 + i * 15;
}Last updated
Was this helpful?