public Player(Context2D CanvasContext, int X, int Y, double Radius, string Color) { ctx = CanvasContext; x = X; y = Y; radius = Radius; color = Color; }
public async Task <SKCanvas2DContext> InitializeAsync() { _context = await Component.CreateCanvas2DAsync(); _batch = await _context.CreateBatchAsync(); await _batch.LineCapAsync(LineCap.Round); return(this); }
public virtual void Draw(Context2D ctx) { }
public override void Draw() { Context2D.DrawGeometry(geometry, brush, strokeWidth, strokeStyle); }
public override void Draw() { Context2D.DrawEllipse(ellipse, brush, strokeWidth, strokeStyle); }
public override void Draw() { Context2D.DrawBitmap(bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle); }
public override void Draw() { Context2D.FillRoundedRectangle(roundedRect, brush); }
public override void Draw() { Context2D.DrawLine(point0, point1, brush, strokeWidth, strokeStyle); }
public override void RenderSelf(Context2D ctx) { }
public override void Draw() { Context2D.FillGeometry(geometry, brush, opacityBrush); }
public override void Draw() { Context2D.FillEllipse(ellipse, brush); }
public override void Draw() { Context2D.Clear(clearColor); }
public override void Draw() { Context2D.DrawTextLayout(origin, textLayout, defaultFillBrush, options); }
public override void Draw() { Context2D.DrawText(text, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode); }
public override void Draw() { Context2D.DrawRoundedRectangle(roundedRect, brush, strokeWidth, strokeStyle); }
public override void Draw() { Context2D.FillMesh(mesh, brush); }
public override void Draw() { Context2D.FillOpacityMask(opacityMask, brush, content, destinationRectangle, sourceRectangle); }
public abstract void RenderSelf(Context2D ctx);
public override void Draw() { Context2D.DrawGlyphRun(baselineOrigin, glyphRun, foregroundBrush, measuringMode); }