Write a program called Spiral that uses the DrawingPanel to draw the figure shown in Figure.
Figure

The window is 170 × 170 pixels. The background is white and the foreground is black. The spiral line begins at point (0, 10) and spirals inward. There are 10 pixels between each arm of the spiral and eight spirals in all. The initial spiral touches points (0, 10), (160, 10), (160, 160), (10, 160), and (10, 20).
For an additional challenge, parameterize your program with parameters such as the window size and the number of spiral loops desired.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.