Exemple #1
0
 public void Draw()
 {
     ctx.BeginPathAsync();
     ctx.ArcAsync(x, y, radius, 0, Math.PI * 2, false);
     ctx.FillStyleAsync(color);
     ctx.FillAsync(FillRule.NonZero);
 }
Exemple #2
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();
 }