Merge pull request #219 from MuriloMir/patch-1

Setting up the .clear() method better
This commit is contained in:
Adam D. Ruppe 2019-10-04 08:22:15 -04:00 committed by GitHub
commit 91424ca649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }