Ejemplo n.º 1
0
 public void Draw()
 {
     ctx.BeginPathAsync();
     ctx.ArcAsync(x, y, radius, 0, Math.PI * 2, false);
     ctx.FillStyleAsync(color);
     ctx.FillAsync(FillRule.NonZero);
 }
Ejemplo n.º 2
0
        public async Task FillAsync(Fill fill, FillStyle style)
        {
            await SetFillStyleAsync(style);

            await _batch.FillRectAsync(0, 0, int.MaxValue, int.MaxValue);

            await _batch.FillAsync(FillRule.EvenOdd);
        }
Ejemplo n.º 3
0
 public void Draw()
 {
     ctx.SaveAsync();
     ctx.GlobalAlphaAsync(alpha);
     ctx.BeginPathAsync();
     ctx.ArcAsync(x, y, radius, 0, Math.PI * 2, false);
     ctx.FillStyleAsync(color);
     ctx.FillAsync(FillRule.NonZero);
     ctx.RestoreAsync();
 }