Ejemplo n.º 1
0
    async Task CanvasDraw()
    {
        await ctx.SetProperty("fillStyle", "black");

        await ctx.Invoke <object>("fillRect", 0, 0,
                                  canvasWidth, canvasHeight);

        await ctx.SetProperty("fillStyle", "#f00");

        await ctx.Invoke <object>("beginPath");

        await ctx.Invoke <object>("arc",
                                  X, Y, RADIUS, 0, degreesToRadians(360), true);

        await ctx.Invoke <object>("fill");
    }