##### Ninja Library - 2D Graphics Function

# njDrawCircle2D

Draws an ellipse on a 2D screen

### FORMAT

`

  void njDrawCircle2D( *p, n, pri, attr )
  NJS_POINT2COL *p
  Int n
  Float pri
  Uint32 attr

`

### PARAMETER

  `*p` | List of coordinates for drawing ellipses
  `n` | Number for drawing ellipse
  `pri` | Priority (use for Z value)
  `attr` | Attribute (select drawing method)

### RETURN

  None

### DESCRIPTION

  Draws an ellipse on a 2D screen. The attributes which can be used are listed below.

  -NJD_DRAW_NORMAL | Center point of the ellipse is specified by the first x,y coordinates. The second x coordinate is the distance from the center on the x-axis, and the second y coordinate the distance from the center on the y-axis; thus an ellipse is drawn.
  -NJD_DRAW_INSCRIBED | Draws a circle that touches the diagonal of a rectangle at two points (inscribed cirle).
  -NJD_DRAW_FAN | Draws a concentric circle.
  -NJD_DRAW_INSCRIBED|NJD_DRAW_FAN | Centering on the first point, draws a radius.
  -NJD_DRAW_INSCRIBED|NJD_DRAW_CONNECTED | Inscribed circles of the rectangle draws successive inscribed circles.
  -NJD_FILL | Drawing with interior fill.
  -NJD_TRANSPARENT | Transparent drawing.
  -NJD_USE_TEXTURE | Drawing with texture.

### EXAMPLE

      The following draws 4 inscribed circles centering on a specific 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(p2c,4,-10.f,NJD_DRAW_NORMAL|NJD_DRAW_INSCRIBED|NJD_DRAW_FAN);

### NOTE

  The NJD_DRAW_NORMAL attribute may be omitted when it is used in combination with other attributes.

njDrawCircle2D

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999