Lévy C curve — Fantastic Fractal Explorer
Lévy C curve
Take a segment and replace it by the two shorter sides of a right isosceles triangle standing on it, like a roof. Do the same to each of the two new segments, the roof always on the same side, and keep going. The segments curl up into the Lévy C curve, studied by Ernesto Cesàro in 1906 and by Paul Lévy in 1938, who showed it is made of two copies of itself.
In complex numbers the chord runs from 0 to 1 and the bend is at a point . The two halves are the images of the chord under
both running the same way along the curve. The Lévy C curve has . The Heighway dragon uses the same bend, with the second half run backwards.
What you can change
The point you drag is the bend . Both halves must be shorter than the chord, and . A bend close to the chord gives a gentle wrinkle; a sharp one, a tight curl.
The depth slider sets how many levels there are, counting the straight chord as level 1, so depth bends it times into segments. Only the last level is drawn, each segment as a small diamond: its bend and the bend's mirror image across it. With the color ratio the color runs evenly along the curve from one end to the other.