##### Ninja Library - Special Effects Function

# njColorClampMode

Sets color clamp mode

### FORMAT

`

  void njColorClampMode( mode )
  Int mode

`

### PARAMETER

  `mode` | Color clamp mode
  `` | ON : Enable color clamp mode
  `` | OFF : Disable color clamp mode (default)

### RETURN

  None

### DESCRIPTION

  Specifies whether color clamp set with `njSetColorClamp()` function is enabled or disabled. The color clamp mode can be set individually for each drawing object. The setting remains active until changed. To disable the mode, the explicit command must be used. The default setting for the color clamp mode is "disabled".

### EXAMPLE

      The following sets color clamp mode.
      njSetColorClamp(0xFFFFFFFF,0xFF808080);
      /* Enable color clamp mode */
      njColorClampMode(ON);
      /* Color clamping is carried out */
      njDrawObject(OBJECT);
      /* Disable color clamp mode */
      njColorClampMode(OFF);
      /* Color clamping is not carried out */
      njDrawObject(OBJECT2);

### NOTE

  Color clamping does not apply to backgrounds set with `njSetBackColor()` function. This function can be used with fade and fog function.

### REFERENCE

  `njSetColorClamp()
  `

njColorClampMode

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999