INNER CODE UNIT · C#
pr
ArcadeMakerSources/ArcadeMaker · src/ArcadeMaker.Core/IGame.Funcs.cs:631
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>
/// <param name="args">(x1, y1, x2, y2, [lineThickness]).</param>