- This wiki is out of date, use the continuation of this wiki instead
Fade
From FenixWiki
Contents |
[edit] Definition
INT fade ( <INT red> , <INT green> , <INT blue> , <INT speed> )
Fades the screen from the current setting to the specified setting (red,green,blue) at the specified speed.
[edit] Parameters
INT red | - Amount of red shown from 0 to 200. 100 is normal. |
INT green | - Amount of red shown from 0 to 200. 100 is normal. |
INT blue | - Amount of red shown from 0 to 200. 100 is normal. |
INT speed | - The speed of the fade from 1 to 64. |
[edit] Returns
INT : true
[edit] Notes
Standard RGB combinations:
(R,G,B) | - Description |
(0,0,0) | - Black out. |
(100,100,100) | - Normal. |
(200,200,200) | - White out. |
The number of frames the fading will take can be calculated like this:
- frames = roundup( 64 / speed )
- speed = roundup( 64 / frames )
So:
Speed | - Description |
<0 | - Takes 1 frame. |
0 | - Pointless. |
1 | - Takes 64 frames. |
2 | - Takes 32 frames. |
3 | - Takes 22 frames. |
>=64 | - Takes 1 frame. |