Procedural frosting texture
Start with a Bezier Circle (Add/Curve) Tab into Edit mode and from the Specials menu w Subdivide the circle twice. Deselect all the control points a then select every other one by holding down shift.

Move the selected control points up (g and then z to constrain to Z axis) then from the Top view NUMPAD 7 r to rotate.



Tab out of Edit mode and add another Bezier Circle and name it "Bevel Profile".

Go into the Curve properties of the original Bezier Circle and increase the Extrude value and set the Bevel Object to be "Bevel Profile".


This shows what we are trying to do and you can edit the "Bevel Profile". Subdivide and this time s scale the alternate control points to make a star shape.


And finally you can add some materials, duplicate, scale etc.