INNER CODE UNIT · C#
alphaFactor
ArcadeMakerSources/ArcadeMaker · src/ArcadeMaker.Core/IGame.Funcs.cs:630
var alphaFactor = a / 255.0;
byte pr = (byte)System.Math.Round(r * alphaFactor);
byte pg = (byte)System.Math.Round(g * alphaFactor);
byte pb = (byte)System.Math.Round(b * alphaFactor);
uint abgrValue =
((uint)a << 24) |
((uint)pb << 16) |
((uint)pg << 8) |
pr;
return ((double)abgrValue).ToExp();
}
/// <summary>
/// Draws a line between two points.
/// </summary>
/// <param name="_">The calling EXP instance (unused).</param>