INNER CODE UNIT · C#

pb

ArcadeMakerSources/ArcadeMaker · src/ArcadeMaker.Core/IGame.Funcs.cs:633

        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>
    [EngineFunc(4, 5)]
    [Param("x1", ParamType.Number, "Position 1 x.")]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…