Updating the drawCircle() function

I've updated the definition of the drawCircle() function because the previous definition was not working properly.
This commit is contained in:
Murilo Miranda 2020-01-24 06:27:07 -03:00 committed by GitHub
parent bd7a3fcc32
commit 7b94b5e7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6604,10 +6604,9 @@ struct ScreenPainter {
impl.drawArc(upperLeft.x, upperLeft.y, width, height, start, finish);
}
//this function draws a circle using the drawArc() function above, it requires you to pass the point it
//will be drawn at as a Point struct and the radius as an int
//this function draws a circle with the drawEllipse() function above, it requires the upper left point and the radius
void drawCircle(Point upperLeft, int radius) {
this.drawArc(upperLeft, radius, radius, 0, 0);
drawEllipse(upperLeft, Point(upperLeft.x + radius, upperLeft.y + radius));
}
/// .