drawContext2DArc function

void drawContext2DArc(
  1. dynamic context2D,
  2. double x,
  3. double y,
  4. double radius,
  5. double startAngle,
  6. double endAngle,
  7. bool counterclockwise,
)

Add an arc (circle segment) to the current path and move to its start.

Implementation

void drawContext2DArc(
  dynamic context2D,
  double x,
  double y,
  double radius,
  double startAngle,
  double endAngle,
  bool counterclockwise,
) {
  if (context2D is web.CanvasRenderingContext2D) {
    context2D.moveTo(x, y);
    context2D.arc(x, y, radius, startAngle, endAngle, counterclockwise);
  }
}