Drag on the canvas to draw your own closed curve. Lower the circle count to see the Gibbs phenomenon.