Custom Main with stripe?

Do you have a question on how to do something.
Ask in here.
Post Reply
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Custom Main with stripe?

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Custom Main with stripe?

Post by rimai »

Yeap :)
Roberto.
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Custom Main with stripe?

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Custom Main with stripe?

Post 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.
Roberto.
Post Reply