- This wiki is out of date, use the continuation of this wiki instead
Fading
From FenixWiki
Definition
INT fading
Fading is a global variable, holding whether the screen is currently fading. This can be caused by the functions fade(), fade_on() or fade_off(). Its value will be true if there is fading going on and false is not.
Example
Fade.
Program faders; Begin write(0,160,100,4,"Look at this fading text!"); fade_off_and_on(); Repeat frame; Until(key(_ESC)) let_me_alone(); End Process fade_off_and_on() Begin Loop fade(0,0,0,4); // Fade to black while(fading) frame; end // Wait for the fading to finish fade(100,100,100,4); // Fade to normal while(fading) frame; end // Wait for the fading to finish End End
Used in example: write(), key(), let_me_alone(), fade()
Global variables | |
• Argc • Argv • Cdinfo • Dump_type • Fading • Fileinfo • Fps • Frame_time • Full_screen • Graph_mode • Mouse • Os_id • Restore_type • Scale_mode • Scroll • Sound_channels • Sound_freq • Sound_mode • Text_flags • Text_z • Timer • |