The following fades out to green.
Float fade_val;
njSetFadeColor(0xff00ff00);
njExecuteFade(fade_val);
njFadeEnable();
/* Drawing models etc. */
njFadeDisable();
NOTE
The example above only explains the flow of the fog feature, and therefore, it is not for actual use.