Fading the screen

 BBS: Inland Empire Archive
Date: 05-12-92 (17:02)             Number: 39
From: CORIDON HENSHAW              Refer#: NONE
  To: MICAH SHERR                   Recvd: NO  
Subj: Fading the screen              Conf: (2) Quik_Bas
In a msg on <May 09 11:33>, Micah Sherr of 1:101/370 writes:

 MS> Dear Experienced QuickBASIC Programmer,

 MS>         I'm designing this great new game with VGA/MCGA graphics
 MS> and SoundBLASTER support.  So far this is working out perfectly.
 MS> However, I need a routine to fade the screen (in mode 13).  I
 MS> think you can do this with the palette statement.  Please write
 MS> back to me telling me how to do this, and if at all possible,
 MS> write a small routine for me.  Thanx.

Like this:

FOR X=0 to 255
    OUT &H3D7,X
    OUT &H3D9,0
    OUT &H3D9,0
    OUT &H3D9,0
NEXT

This will fade all colors to black.
--- msgedsq 2.0.5
 * Origin: -=- This message from:  Point Blank -=- (1:250/804.200)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET