Question: void spiral( centerX, centerY, maxRadius, spinRate, numSegments) This will draw a spiral centered at (x, y). The maxRadius determines how large the spiral can be.

void spiral( centerX, centerY, maxRadius, spinRate, numSegments)

This will draw a spiral centered at (x, y). The maxRadius determines how large the spiral can be. A low spin rate will be basically a line out from the center. A high spin rate will have more circles. The spiral will be consist of many line segments. The numSegments parameters says how many to use to draw it.

Basically we're using a drawline method with a drawing library where StdDraw.drawline(x,y,x1,y1) draws a line at those coordinates. We need to create a spiral drawing method with the parameters above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!