TGC Codebase Backup



fading word screensaver by Blobby 101

22nd Sep 2006 16:11
Summary

prints words of fading colours in a continuous loop EDIT: fixed glitch where it wouldn't go past the blue part



Description

prints a word to the screen and fades it through red, green and blue then start again.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    red:
a=0
do
ink rgb(a,0,0),0
Print "red"
a=a+1
if a=256 then goto green
loop
green:
a=0
do
ink rgb(0,a,0),0
Print "green"
a=a+1
if a=256 then goto blue
loop
blue:
a=0
do
ink rgb(0,0,a),0
Print "blue"
a=a+1
if a=256 then goto red
loop