R code to generate beautiful high resolution Clifford attractors. The points of a Clifford attractor are defined by
xₙ₊₁ = sin(a yₙ) + c cos(a xₙ)
yₙ₊₁ = sin(b xₙ) + d cos(b yₙ)
where a, b, c, d are constants.
A large gallery of high resolution Clifford Attractors can be found here. Some low resolution examples can be found below.
In these plots, the colour is based on the angle between the current and previous point. The a, b, c, d parameters are randomly drawn from a U(-3, 3) distribution.