code: private void createStar() {
          Point2D.Float point = start;
          p = new GeneralPath(GeneralPath.WIND_NON_ZERO);
          p.moveTo(point.x, point.y);
          p.lineTo(point.x + 3.0f, point.y - 1.5f);            // Line from start to A
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x + 1.5f, point.y - 3.0f);            // Line from A to B
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x + 1.5f, point.y + 3.0f);            // Line from B to C
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x + 3.0f, point.y + 1.5f);            // Line from C to D
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x - 3.0f, point.y + 1.5f);            // Line from D to E
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x - 1.5f, point.y + 3.0f);            // Line from E to F
          point = (Point2D.Float) p.getCurrentPoint();
          p.lineTo(point.x - 1.5f, point.y - 3.0f);            // Line from F to g
          p.closePath();                                        // Line from G to start
      }
docs: Create the path from start