From 478df4abf53a3cd503ed8233b9887ee11ac2d0e3 Mon Sep 17 00:00:00 2001
From: Murilo Miranda <murilomiranda92@hotmail.com>
Date: Fri, 4 Oct 2019 02:23:28 -0300
Subject: [PATCH] Setting up the .clear() method better

I've made the .clear() method more practical by giving the user the ability to decide which color the screen will be cleared with and setting the default as black since this is what you will probably be using.
---
 simpledisplay.d | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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