njDrawCircle2D | Japanese
    --|INDEX|->
Draws circles on a 2D screen.

### FORMAT

      #include <Ninja.h>
      void njDrawCircle2D( *p, n, pri, attr )
      NJS_POINT2COL *p
      Int n
      Float pri
      Uint32 attr

### PARAMETERS

*p
  list of coordinates of circles to be drawn
n
  number of circles to be drawn
pri
  priority (used as the Z value)
attr
  attributes (specifies drawing method)

### RETURN VALUE

  None

### FUNCTION

- Draws circles.
- The following attributes can be used.

  NJD_DRAW_NORMAL | An ellipse is drawn with center at x,y coordinates of the 1st point. The x of the 2nd point defines the distance from the center in the x direction, and the y defines the distance from the center in the y direction.
  NJD_DRAW_INSCRIBED | The circle is inscribed in the rectangle whose diagonal is defined by two points.
  NJD_DRAW_FAN | Allows drawing of concentric circles.
  NJD_FILL | Drawing with fill.
  NJD_TRANSPARENT | Transparent drawing.
  NJD_USE_TEXTURE | Drawing with texture.

  Example)
  - NJD_DRAW_INSCRIBED|NJD_DRAW_FAN
    Allows drawing of circles radially around a center defined by the 1st point.
  - NJD_DRAW_INSCRIBED|NJD_DRAW_CONNECTED
    Allows drawing of consecutive circles inscribed in rectangles.

### EXAMPLE

  The following draws four inscribed circles centered on a point.

      Sint32 i;
      NJS_POINT2COL	p2c[5];
      NJS_POINT2	p[5];
      NJS_COLOR	col[5];

      p2c.p = p;
      p2c.col = col;
      p2c.tex = NULL;
      p2c.num = 5;

      p2c.p[0].x = 320;
      p2c.p[0].y = 240;
      p2c.col[0].color = 0xff000077;

      p2c.p[1].x = 70;
      p2c.p[1].y = 40;
      p2c.col[1].color = 0xff000077;

      p2c.p[2].x = 570;
      p2c.p[2].y = 40;
      p2c.col[2].color = 0x00ff0077;

      p2c.p[3].x = 570;
      p2c.p[3].y = 440;
      p2c.col[3].color = 0x0000ff77;

      p2c.p[4].x = 70;
      p2c.p[4].y = 440;
      p2c.col[4].color = 0xffffff77;

      njDrawCircle2D(p,4,-10.f,NJD_DRAW_NORMAL|NJD_DRAW_INSCRIBED|NJD_DRAW_FAN);

### NOTES

- The NJD_DRAW_NORMAL may be omitted when used in combination with other attributes.

### RELATED TOPICS

  NJS_POINT2COL

njDrawCircle2D |
    --|INDEX|->