##### Ninja Library - Special Effects Function

# njExecuteFade

Executes a fade

### FORMAT

`

  void njExecuteFade( f )
  Float f

`

### PARAMETER

  `f` | Degree of fading specified (between 0.f and 1.f).

### RETURN

  None

### DESCRIPTION

  Executes fading. Original color displayed when the fading degree of the parameter is 0.f. When the degree is 1.f, fading causes a complete change to the specified color.

### EXAMPLE

      The following fades out to green.
      Float fade_val
      	:
      njSetFadeColor(0xff00ff00);
      njExecuteFade(fade_val);
      njFadeEnable();
      	:
      /* Draw model, etc. */
      	:
      njFadeDisable();
      	:

### NOTE

  The fog function cannot be used for the same object.

### REFERENCE

  `njSetFadeColor()
  njFadeEnable()
  njFadeDisable()
  `

njExecuteFade

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999