drawCircle function

Image drawCircle(
  1. Image image,
  2. int x0,
  3. int y0,
  4. int radius,
  5. int color,
)

Draw a circle into the image with a center of x0,y0 and the given radius and color.

Implementation

Image drawCircle(Image image, int x0, int y0, int radius, int color) {
  final points = _calculateCircumference(image, x0, y0, radius);
  return _draw(image, points, color);
}