Filling a square with a nice leave pattern made by a single line.

The algorithm subdivides the square into 9 smaller ones and walks from one corner to the opposite one, visiting each small square where the procedure is recursively applied.

 

Floral pattern

A floral pattern drawn by a single line - open in full size.