Page 1 of 1
Color system
Posted: Wed Jul 08, 2009 3:44 pm
by izidor
___________________________________________________
|__COLOR GRAY/DARK GREY ___________________________|
| |
| |
| COLOR RED/BLUE |
| |
| |
| |
| (SCREEN 9) |
| |
| |
| |
|___________________________________________________|
Is it possible to do this in the same time? And if it is how to do it?
Posted: Wed Jul 08, 2009 4:35 pm
by burger2227
You can change foreground colors. Background color substitutes for color 0 the default BG color in all screens. Two BG changes mean that the last one will be the BG unless you use a pause loop or INPUT.
When you change Screen modes, all previous data on the screen is erased like using CLS. Plus all color settings are lost!
Is that what you mean?
Posted: Thu Jul 09, 2009 3:02 am
by izidor
I want to do this:

Posted: Thu Jul 09, 2009 3:57 am
by burger2227
Try using ASCII character 219 to create the header. You could also make it using a LINE box in Screen 9.
It looks like the dark grey is a shadow. Just use a thinner box.
Screen 9 has 64 color backgrounds to choose from (0 to 63).
Screen 9 is a DAC screen, so the attribute numbers are different than Screen 12 or 13's 0 to 15. 1 to 5 are the same.
Posted: Thu Jul 09, 2009 8:09 am
by izidor
I know how to use LINE statement, i want to have two texts with different backgrounds and foregrounds. So if it isn't trouble can you post the code?
Posted: Thu Jul 09, 2009 11:34 am
by Harry Potter
You could first draw a box the size of a text character in the first position of the text; save it in an array using GET; write the text in the color Foreground XOR Background; then paste the box to every text character PRINTed using PUT in XOR mode. Other than that, you can't do split-screen on a PC.
Posted: Thu Jul 09, 2009 12:52 pm
by izidor
Yes that's great but can you give an example?
Posted: Thu Jul 09, 2009 2:02 pm
by burger2227
You can't always get what you want......................
But if you try sometime, you get what you need!
Posted: Thu Jul 09, 2009 2:12 pm
by izidor
Oh, then I will try something else.
Don't get me wrong but i am not good with graphics and toes things like GET and PUT. I am using QB64 so i will yous load an image.
Posted: Thu Jul 09, 2009 2:26 pm
by izidor
That's true what you are talking about.
I just take and take but never give. But did you ever wonder why maybe because I need to learn, I want to make big things but i can barely do an easy LOOP.
Posted: Thu Jul 09, 2009 2:45 pm
by burger2227
Just play around with stuff like you just did. There is no way to use two background colors at once. But you can create LINE boxes to use as fake backgrounds.
Try my Demonstrator link below.
Ted