Flower with 12 petal is described with following expression:
p = a * cos(6*f)
p - is distance ; f-degree a - amplitude
Illustration shows how flower is drawn in polar coordinates:(p - previous value of distance and d - previous value of degree; p1 and f1 new (next) values).