##### Ninja Library - Special Effects Function

# njSetColorClamp

Sets color clamping color

### FORMAT

`

  void njSetColorClamp(MaxARGB,MinARGB )
  Uint32 MaxARGB
  Uint32 MinARGB

`

### PARAMETER

  `MaxARGB` | Color clamping maximum color (packing format)
  `MinARGB` | Color clamping minimum color (packing format)

### RETURN

  None

### DESCRIPTION

  Sets the maximum color and minimum color for color clamping. Because the default for color clamping is "disabled", the `njColorClampMode()` function must first be set to ON before the color clamping value becomes valid. The color clamping color cannot be set individually for each drawing object.

### 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 functions.

### REFERENCE

  `njColorClampMode()
  `

njSetColorClamp

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999