CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Feature request: add stitch points directly #45

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

Hi @LingDong- , There has been a request to have the ability to add stitch points directly, within the user's Processing sketch itself. Basically, some users want extremely precise control over where the stitches go. One example is for artistic effects; another example is a CS professor who wants to assign their students to have the problem of designing a stitch-placing algorithm (without having to recompile PEmbroider). Or, perhaps they just don't like where our algorithm has placed the stitches.

The command would have syntax like E.stitch(x,y);

Can it be done? (Does it already exist?)

LingDong- commented 4 years ago

Hi @golanlevin , yup I can add that easily

currently it can be achieved with a combo of E.toggleResample(false) and E.pushPolyline(ArrayList<PVector>);. But I'll make a E.stitch(x,y); to make it more convenient

LingDong- commented 4 years ago

Added: 946609f67f4c91cf0557491494fedf6f9d10da8b

Screen Shot 2020-06-20 at 7 25 08 PM
golanlevin commented 4 years ago

perfect thanks