Background Colour in QBasic screen mode 12 
Author Message
 Background Colour in QBasic screen mode 12

Is there any way that I can have background colour in screen mode 12 in
Quick Basic 4.5 or 7.1. I have found out that setting the WIDTH statement to
80,25 I get background coour but no graphics, I need both. The screen must
also be able to load fast.


Thu, 19 Jul 2001 03:00:00 GMT  
 Background Colour in QBasic screen mode 12
First, you will never be able to make fast graphics in mode 12 with
Basic, second, the only way you can use background color in Graphic
modes is to PRINT the text to the screen, GET it, then draw a box, PUT
the text as OR and XOR or something like that, I don't quite remember,
but it's the only way.

Ex:

Screen 12
DIM Under(10000) AS INTEGER
LOCATE 1,1:PRINT "Test"
GET (0, 0)-(100, 10), Under
Line (0, 0)-(100, 10), 1, BF
PUT (0,0), Under, OR          'Change XOR to OR, AND, XOR, PRESET
PUT (0,0), Under, XOR         'or PSET to find the best way to put
                              'the text transparent

-Dekah

Quote:

> Is there any way that I can have background colour in screen mode 12 in
> Quick Basic 4.5 or 7.1. I have found out that setting the WIDTH statement to
> 80,25 I get background coour but no graphics, I need both. The screen must
> also be able to load fast.



Fri, 20 Jul 2001 03:00:00 GMT  
 Background Colour in QBasic screen mode 12
Well, you can use the COLOR command, or try the PAINT command. I suppose if you
were desperate enough, you could even just use the LINE command and draw a box
the size of the entire screen, but this would be much slower.

cheers,
Brendon



Fri, 20 Jul 2001 03:00:00 GMT  
 Background Colour in QBasic screen mode 12
not really, because PPINT erase everything on the back to black. So,
you have to do soemthing to PRINT as OR (transparent)

-Dekah

Quote:

> Well, you can use the COLOR command, or try the PAINT command. I suppose if you
> were desperate enough, you could even just use the LINE command and draw a box
> the size of the entire screen, but this would be much slower.

> cheers,
> Brendon



Fri, 20 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. save/load SCREEN 12 screens in QBasic?

2. faster PSET for SCREEN 12 / memory layout of SCREEN 12

3. Mode 12 and QBasic

4. Palette in QB45 Screen Mode 12 & 13

5. Screen 12 backgrounds in QB 4.5

6. QB screen 12 background color help needed

7. QBasic Screen 12 Text

8. QBasic: putting total screen on disk when SCREEN-mode=13

9. 256 Color in mode 12(QB45)???

10. qbasic screen mode - increase number of rows

11. Screen Modes in QBasic

12. QBASIC Screen Mode

 

 
Powered by phpBB® Forum Software