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