Curve stitching is the process of "stitching" together multiple straight lines in order to create a curve, like so:
For an explanation of curve stitching, visit this website.
We will be drawing our curve in the top left of the screen, as shown in the image above.
Given an integer
n (via STDIN or a function parameter), being the number of lines to draw, and an integer
p pixels, being the interval between the starting points, draw a straight line curve.
Horizontal/vertical lines are necessary, and should be part of the line count.
n = 25, p = 15
n = 20, p = 20
This is a code-golf challenge, so shortest code wins.