Method DrawSquare
DrawSquare(SKCanvas, SKPoint, float, SKPaint)
Draws a square centered at the specified point.
public static void DrawSquare(this SKCanvas canvas, SKPoint c, float side, SKPaint paint)
Parameters
canvasSKCanvasThe canvas to draw on.
cSKPointThe center point of the square.
sidefloatThe length of each side of the square.
paintSKPaintThe paint to use for drawing.
DrawSquare(SKCanvas, float, float, float, SKPaint)
Draws a square centered at the specified coordinates.
public static void DrawSquare(this SKCanvas canvas, float cx, float cy, float side, SKPaint paint)