Programmable Embroidery Design and Implementation