How to sew stars by machine