mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #219 from MuriloMir/patch-1
Setting up the .clear() method better
This commit is contained in:
commit
91424ca649
|
@ -6436,10 +6436,10 @@ struct ScreenPainter {
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
void clear() {
|
void clear(Color color = Color.black()) {
|
||||||
if(impl is null) return;
|
if(impl is null) return;
|
||||||
fillColor = Color(255, 255, 255);
|
fillColor = color;
|
||||||
outlineColor = Color(255, 255, 255);
|
outlineColor = color;
|
||||||
drawRectangle(Point(0, 0), window.width, window.height);
|
drawRectangle(Point(0, 0), window.width, window.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue