dart-archive / sdk

The Dartino project was an experiment seeking to improve productivity when writing application code for embedded devices.
https://dartino.org
Other
330 stars 36 forks source link

FrameBuffer.clear should default to the background color #503

Closed mit-mit closed 8 years ago

mit-mit commented 8 years ago

From the codelab in Aalborg:

class FrameBuffer has a clear method for clearing the screen. If you do not pass an explicit color, then it defaults to Color.black. This is confusing it the developer has configured the background color to any other color than black.

In addition, the default should be white as that is what the default text and line rendering uses if backgroundColor and foregroundColor are not set.

mit-mit commented 8 years ago

CL: https://codereview.chromium.org/1996533003