njSetLightColor | Japanese
    <-|INDEX|->
Sets the color of light defined by njCreateLight.

### FORMAT

      #include <NINJA.H>
      void njSetLightColor( *ptr , red , green , blue )
      NJS_LIGHT *ptr
      Float red
      Float green
      Float blue

### PARAMETERS

*ptr
  light pointer
red
  red in light source
green
  green in light source
blue
  blue in light source

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Sets the 3-color components of lighting.
- For each component, 100% is denoted by 1.f.
- This is the default for all components.

### EXAMPLE

      #include <NINJA.H>
      ...........

      NJS_LIGHT light;

      njInitSystem();
      njCreateLight(&light, NJD_DIR_LIGHT);
      ...........
      /* Set the color of a parallel light source to 255,0,0 (red) */
      njSetLightColor(&light, 1.f, 0.f, 0.f);

### NOTES

- Before using this function, the light source must first be defined using njCreateLight.

### RELATED TOPICS

  njCreateLight()

njSetLightColor |
    <-|INDEX|->