diff --git a/simpledisplay.d b/simpledisplay.d index 6ee6b5a..2d9592e 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -6436,10 +6436,10 @@ struct ScreenPainter { } /// - void clear() { + void clear(Color color = Color.black()) { if(impl is null) return; - fillColor = Color(255, 255, 255); - outlineColor = Color(255, 255, 255); + fillColor = color; + outlineColor = color; drawRectangle(Point(0, 0), window.width, window.height); }