Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Fade Out
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
85882




PostPosted: Fri Jun 13, 2003 12:28 pm   Post subject: Fade Out

code:
procedure FadeThisIn (title:string, x, y :int, size, speed:int)
    var font : int := Font.New ("Arial:"+intstr(size))
    for decreasing i : 31 .. 10
        Font.Draw (title, x, y, font, i)       
        delay (speed)
    end for
    put ""
end FadeThisIn

FadeThisIn ("-----------------------*The Easy OOT Decision Structure Quiz*------------------", 1, 100, 15, 800)


Is there a way to fade out instead of in?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Jun 13, 2003 2:36 pm   Post subject: (No subject)

just reverse your for loop Confused

code:

procedure FadeThisOut (title:string, x, y :int, size, speed:int)
    var font : int := Font.New ("Arial:"+intstr(size))
    for i : 21 .. 31
        Font.Draw (title, x, y, font, i)       
        delay (speed)
    end for
    put ""
end FadeThisIn

FadeThisOut ("-----------------------*The Easy OOT Decision Structure Quiz*------------------", 1, 100, 15, 800)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: