# Silly question of the day, how do I draw an arc without drawing an additional line?

**URL:** <https://forum.juce.com/t/silly-question-of-the-day-how-do-i-draw-an-arc-without-drawing-an-additional-line/57124>\
**Category:** General JUCE discussion\
**Created:** [July 21, 2023, 9:52pm UTC](https://forum.juce.com/t/silly-question-of-the-day-how-do-i-draw-an-arc-without-drawing-an-additional-line/57124 "2023-07-21T21:52:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcusonic](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Marcusonic](https://forum.juce.com/u/Marcusonic)\
**Post date:** [July 21, 2023, 9:52pm UTC](https://forum.juce.com/t/silly-question-of-the-day-how-do-i-draw-an-arc-without-drawing-an-additional-line/57124/1 "2023-07-21T21:52:54Z")

</div>

I don’t usually raise this kind of silly questions, but I’m already fasting pissed off after a while and I can’t waste another minute on this absurdity.

I want to draw an arc but I can’t get rid of the damn line that is drawn from the end point of the arc to the 0,0 point.

```
        juce::Path arcPath;
        arcPath.addCentredArc(50, 50, 40, 40, 0, 1.0f, true); // the line appears with true or false
        g.strokePath(arcPath, juce::PathStrokeType(1.0f));

```

---

<div class="post-metadata">

**Author:** ![aamf](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aamf/32/19941_2.png) [@aamf](https://forum.juce.com/u/aamf)\
**Post date:** [July 22, 2023, 9:43am UTC](https://forum.juce.com/t/silly-question-of-the-day-how-do-i-draw-an-arc-without-drawing-an-additional-line/57124/2 "2023-07-22T09:43:19Z")

</div>

Can it be that you forgot a parameter and are not getting a warning because the optional bool (startAsNewSubPath) is being cast to a float (toRadians)? The function takes seven floats, yours has six.

---

<div class="post-metadata">

**Author:** ![Marcusonic](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Marcusonic](https://forum.juce.com/u/Marcusonic)\
**Post date:** [July 22, 2023, 6:30pm UTC](https://forum.juce.com/t/silly-question-of-the-day-how-do-i-draw-an-arc-without-drawing-an-additional-line/57124/3 "2023-07-22T18:30:20Z")

</div>

this is 👍
