import java.io.*;
import java.awt.*;
// Logarithmic spiral example
public class Spiral extends Frame
{// The spiral consists of n line segments. Line segment 1
// has starting point (hc, vc). Line segment k, for 1<=k<=n,
// has length k*d. Each line segment makes an angle of turn
// degrees with the previous line segment. The colors of the
// lines alternate between red, blue, and green.
final static int hc= 500; // Center of spiral is (hc,vc)
final static int …
Run Code Online (Sandbox Code Playgroud)