You are already on the right track, but you need to shrink and limit the angles. Curved lines are simply a combination of a large number of very short straight lines are gradual angles.
If you have a specific shape in mind, you might be able to model it with specific math equations (like sin x, x^2, e^x, etc), but if you want arbitrary shapes then you will need to fall back on incremental lines.