njColorBlendingMode | Japanese
    --|INDEX|->
Sets Color Blending Mode

### FORMAT

      #include <Ninja.h>
      void njColorBlendingMode( target, mode )
      Int target
      Int mode

### PARAMETERS

target
  Mode setting object
mode
  Blending mode

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Sets blending mode.
- Targets that can be set as follows:

  NJD_SOURCE_COLOR | source color
  NJD_DESTINATION_COLOR | destination color

- Following shows the modes that can be set for each target:

  NJD_COLOR_BLENDEING_BOTHINVALPHA | Regardless of the target specification, multiply source color by (1-As, 1-As, 1-As, 1-As) and destination color by (As, As, As, As) and blend.
  NJD_COLOR_BLENDEING_BOTHSRCALPHA | Regardless of the target specification, multiply source color by (As, As, As, As) and destination color by (1-As, 1-As, 1-As, 1-As), and blend.
  NJD_COLOR_BLENDEING_DESTALPHA | Multiply specified target by(Ad, Ad, Ad, Ad) and blend.

  NJD_COLOR_BLENDEING_DESTCOLOR | Use the destination color for the specified target.
  NJD_COLOR_BLENDEING_INVDESTALPHA | Multiply specified target by (1-Ad, 1-Ad, 1-Ad, 1-Ad) and blend.
  NJD_COLOR_BLENDEING_INVDESTCOLOR | Use (1-Ad, 1-Rd, 1-Gd, 1-Bd) for specified target.
  NJD_COLOR_BLENDEING_INVSRCALPHA | Multiply specified target by (1-As, 1-As, 1-As, 1-As) and blend.
  NJD_COLOR_BLENDEING_INVSRCCOLOR | Use (1-As, 1-Rs, 1-Gs, 1-Bs) for specified target.
  NJD_COLOR_BLENDEING_SRCALPHA | Multiply specified target by (As, As, As, As) and blend.

  NJD_COLOR_BLENDEING_SRCCOLOR | Use source color for specified target.
  NJD_COLOR_BLENDEING_ONE | Multiply specified target by (1, 1, 1, 1) and blend.
  NJD_COLOR_BLENDEING_ZERO | Multiply specified target by (0, 0, 0, 0) and blend.

### EXAMPLE

### NOTES

  s and d appeared in the above explanation mean source color and destination color, respectively.
  ExamplejAs means alpha of source color.

### RELATED TOPICS

njColorBlendingMode |
    --|INDEX|->