mirror of https://github.com/adamdruppe/arsd.git
Merge branch 'master' of github.com:adamdruppe/arsd
This commit is contained in:
commit
b2ea855bf1
|
@ -6604,10 +6604,9 @@ struct ScreenPainter {
|
||||||
impl.drawArc(upperLeft.x, upperLeft.y, width, height, start, finish);
|
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
|
//this function draws a circle with the drawEllipse() function above, it requires the upper left point and the radius
|
||||||
//will be drawn at as a Point struct and the radius as an int
|
|
||||||
void drawCircle(Point upperLeft, int radius) {
|
void drawCircle(Point upperLeft, int radius) {
|
||||||
this.drawArc(upperLeft, radius, radius, 0, 0);
|
drawEllipse(upperLeft, Point(upperLeft.x + radius, upperLeft.y + radius));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// .
|
/// .
|
||||||
|
|
Loading…
Reference in New Issue