Color system
Color system
___________________________________________________
|__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?
|__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?
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
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?
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?
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
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.
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.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
-
- Veteran
- Posts: 111
- Joined: Sat Feb 21, 2009 8:19 am
- Location: New York, U.S.
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.
Joseph Rose, a.k.a. Harry Potter
Creating magic in the computer community...or at least striving to!
Creating magic in the computer community...or at least striving to!
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
You can't always get what you want......................
But if you try sometime, you get what you need!
But if you try sometime, you get what you need!
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
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
Try my Demonstrator link below.
Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0