mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #199 from MuriloMir/patch-1
Give ScreenPainter another function
This commit is contained in:
commit
6b3ebe868e
|
@ -6604,6 +6604,13 @@ 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
|
||||
void drawCircle(Point upperLeft, int radius)
|
||||
{
|
||||
this.drawArc(upperLeft, radius, radius, 0, 0);
|
||||
}
|
||||
|
||||
/// .
|
||||
void drawPolygon(Point[] vertexes) {
|
||||
if(impl is null) return;
|
||||
|
|
Loading…
Reference in New Issue