Ladies and gentlemen, there is the following code:

public void draw(GraphicsContext gc) { gc.beginPath(); gc.moveTo(x + ax, y + ay); gc.quadraticCurveTo(x + controlPoint.x, y + controlPoint.y, x + cx, y + cy); gc.closePath(); gc.stroke(); } 

The displayed result is literally the following: Drawn figure

How do I remove a straight line? To get the following? picture to get

    1 answer 1

    To get the desired effect you need to remove the line:

     gc.closePath();