This wiki is out of date, use the continuation of this wiki instead

Fade

From FenixWiki

Revision as of 17:13, 28 December 2007 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Contents

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.

Parameters

BYTE red - Amount of red shown from 0 to 200. 100 is normal.
BYTE green - Amount of red shown from 0 to 200. 100 is normal.
BYTE blue - Amount of red shown from 0 to 200. 100 is normal.
INT speed - The speed of the fade from 1 to 64.

Returns

INT : true

Notes

Standard RGB combinations:

(R,G,B) - Description
(0,0,0) - Black out.
(100,100,100) - Normal.
(200,200,200) - White out.

A speed of 0 is pointless, 1 takes 64 frames, 64 takes 1 frame, etc.

See also fade_on() and fade_off().

Personal tools