- This wiki is out of date, use the continuation of this wiki instead
Fade
From FenixWiki
(Difference between revisions)
Revision as of 17:19, 28 December 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (23:26, 28 December 2007) (edit) (undo) Sandman (Talk | contribs) m (→Notes) |
||
Line 41: | Line 41: | ||
{| | {| | ||
| ''Speed'' || - ''Description'' | | ''Speed'' || - ''Description'' | ||
+ | |- | ||
+ | | <0 || - Takes 1 frame. | ||
|- | |- | ||
| 0 || - Pointless. | | 0 || - Pointless. | ||
Line 50: | Line 52: | ||
| 3 || - Takes 22 frames. | | 3 || - Takes 22 frames. | ||
|- | |- | ||
- | | 64 || - Takes 1 frame. | + | | >=64 || - Takes 1 frame. |
|} | |} | ||
See also [[fade_on]]() and [[fade_off]](). | See also [[fade_on]]() and [[fade_off]](). |
Current revision
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. |