Play around with splines. Choose how many edges each line has. Choose if its closed or open. Choose between 1 and 2 control points.
Made some splines. All code by me. Feel free to use without credit.