Page 1 of 1

Custom Main with stripe?

Posted: Mon Jan 21, 2013 9:47 pm
by Piper
If I wanted to create a custom main screen with a [insert your favorite color here] strip with borderes on top and bottom with a black like with I use ReefAngel.LCD.Clear?

Code: Select all

ReefAngel.LCD.Clear(COLOR_BLACK, 1, 11, 132, 11);
ReefAngel.LCD.Clear(COLOR_DIMGREY, 1, 12, 132, 22);
ReefAngel.LCD.Clear(COLOR_BLACK, 1, 23, 132, 23);
And is it safe to put text back over the top of that?

~Charlie

Re: Custom Main with stripe?

Posted: Mon Jan 21, 2013 9:50 pm
by rimai
Yeap :)

Re: Custom Main with stripe?

Posted: Mon Jan 21, 2013 9:59 pm
by Piper
Thanks Roberto. I went ahead and tried it to see what would happen. Is it normal to get a little flicker on the sides when you do that? it's very faint and hard to really see unless you look close. Seems to depend a little on the color too. Darker colors seem to flicker more.

~Charlie

Re: Custom Main with stripe?

Posted: Mon Jan 21, 2013 10:18 pm
by rimai
Flicker usually happens when you clear one area with one color and clear again with another color...
This makes it look like a flicker because the are that is overlapped gets painted in a refresh rate that is visible to the human eye.
To avoid this, you have to make sure you don't overlap Clear() commands.
Usually, I draw background only once so I don't need to worry about overlaps.