##### Ninja Library - Special Effects Function

# njSetFogColor

Specifies the fog color

### FORMAT

`

  void njSetFogColor(c)
  Uint32 c

`

### PARAMETER

  `c` | Color used for fog effect (ARGB)

### RETURN

  None

### DESCRIPTION

  Specifies the fog color.

### EXAMPLE

      The following generates white fog from w = -1.f to -255.f.
      NJS_FOG_TABLE fog;
      njSetFogColor(0xffffffff);
      njSetFogDensity(0xff07);
      njGenerateFogTable(fog);
      njSetFogTable(fog);
      njFogEnable();
      /* Drawing models etc. */
      njFogDisable();

### NOTE

  It can't be used with fade feature against the same object.

  The example above only explains the flow of the fog feature, and therefore, it is not for actual use. |

### REFERENCE

  `njSetFogDensity()
  njGenerateFogTable()
  njGenerateFogTable2()
  njGenerateFogTable3()
  njSetFogTable()
  njFogEnable()
  njFogDisable()
  `

njSetFogColor

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999