##### Ninja Library - Light Function

# njLightOff

Turns off a light that was set by the njCreateLight() function

### FORMAT

`

  void njLightOff( *ptr )
  NJS_LIGHT *ptr

`

### PARAMETER

  `*ptr` | Pointer to light source

### RETURN

  None

### DESCRIPTION

  Turns off the set light source. However, after turning the light source off, it is possible to turn it on again by recalling `njLightOn()` function.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light;
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light, NJD_DIR_LIGHT);
      	:
      /* Turn off parallel light source */
      njLightOff(&light);
      	:

### NOTE

  Functions njCreateLight/njDeleteLight and njLightOn/njLightOff operate as if installing light bulb/removing light bulb and turning on and off an electric lights.

### REFERENCE

  `njCreateLight()
  njLightOn()
  `

njLightOff

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999