title: Drawing star shapes with variable parameters
body: <p>I have task to write program allowing users to draw stars, which can differ in size and amount of arms. When I was dealing with basic stars I was doing it with GeneralPath and tables of points :</p>
  
  <pre><code>     int xPoints[] = { 55, 67, 109, 73, 83, 55, 27, 37, 1, 43 };
       int yPoints[] = { 0, 36, 36, 54, 96, 72, 96, 54, 36, 36 };
       Graphics2D g2d = ( Graphics2D ) g;
       GeneralPath star = new GeneralPath();
       star.moveTo( xPoints[ 0 ], yPoints[ 0 ] );
       for ( int k = 1; k &lt; xPoints.length; k++ )
       star.lineTo( xPoints[ k ], yPoints[ k ] );
       star.closePath();
       g2d.fill( star );
  </code></pre>
  
  <p>What method should I choose for drawing stars with variable inner and outer radius, as well as different amount of arms ? This is what I should obtain :</p>
  
  <p><a href="http://img228.imageshack.us/img228/6427/lab6c.jpg">alt text http://img228.imageshack.us/img228/6427/lab6c.jpg</a></p>