Fading Blue to Black 
Author Message
 Fading Blue to Black

Can someone please help with this problem:

CLS
SCREEN 12
PAINT(1,1),9

Can someone show me how to fade this blue screen slowly to black?
Thanks in advance

Hadler



Fri, 29 May 1998 03:00:00 GMT  
 Fading Blue to Black
     Check out alt.lang.basic.




Fri, 29 May 1998 03:00:00 GMT  
 Fading Blue to Black
Hi,

HH> Can someone show me how to fade this blue screen slowly to black?
HH> Thanks in advance

Off the top of my head, add

RED% = 0
GREEN% = 0
FOR BLUE%= 63 to 0 STEP -1
   PALETTE 9, 65536 * BLUE% + 256 * GREEN% + RED%
   FOR I% = 1 TO 1000: NEXT ' This is a delay - very simple, but easier
                            '  than playing with the TIMER.
NEXT

(This is in QBASIC, and I might of got RED%, GREEN% and RED% the wrong
way round - the important thing is each byte has a limit of 0-63, which
can be frustrating when you are first start playing with PALETTE
values!)

Bye,

Neil
---



Thu, 04 Jun 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Blue fading window

2. BLUE FADED BACKGROUND

3. Fade to Black

4. Fade into black

5. Fade to Black?

6. Fade To black?

7. Help: Resized picture fades to black !!

8. Fading picture/image colors from black to color

9. Real Fade-in and Fade-out

10. Fade-in and Fade-out of button controls

11. Fade in and Fade out images???

12. Fade-in, Fade-out images???

 

 
Powered by phpBB® Forum Software