Spirolaterals are repeated plots of line segments of constantly increasing length (up to a given maximum), with a specified angle of turn after each segment. Cyclic patterns instead use segments of arbitrary lengths, including repetitions, with an angle calculated to generate a given symmetry and to close after a given number of cycles.

The number of segments for each run is determined by the control "size". The lengths (maximum length 10) are randomly chosen (a different set for each "random seed"). A different pattern is generated for each "shuffle".

To increase the symmetry of the patterns a given list of segments is combined with its reverse before repetition, for example {4,2,3,2,5,5,2,3,2,4}.