## Description

Clifford Attractors are attributed to Clifford Pickover. They're reminiscent of smoke gently wafting in still air. paulbourke.net has some more images, and generates colour in a different way.

The formula has four parameters, each chosen randomly on $[-2,2]$. Not all random combinations generate a strange attractor. In some they fall into a fixed cycle or even a single fixed point. If that happens click the Restart button to get a new set of parameters.

$$ x_{n+1} = sin(a y_n) + c cos(a x_n) $$

$$ y_{n+1} = sin(b x_n) + d cos(b y_n) $$

In the rendition below, the hue of a pixel is determined by how far $(x_{n+1},y_{n+1})$ is from $(x_n, y_n)$. I should figure out a way to animate one of the parameters and maybe make some gifs.

## Controls

The buttons below the image control the generation. The step button will stop the generation and compute and draw the next point in the iteration. Clear will blank the drawing area. Restart will set new parameters for $a$, $b$, $c$, and $d$, without clearing the canvas. Save will download the canvas as a PNG image.