stitchables / stitch.js

An open source library for computational embroidery with Javascript
MIT License
13 stars 2 forks source link

Usage of Library #1

Open RobertJG17 opened 4 days ago

RobertJG17 commented 4 days ago

Hey Matthew,

I hope all is well. First and foremost this piece of software is very and impressive. A collaborator of mine and I were interested in leveraging this to generate some fills. However, we were wondering if there was an extended description on the usage of the library, how to go about leveraging the methods for the various stitch patterns and what not.

Sincerely, Robert

matthewjacobson commented 3 days ago

Hello! Thanks so much for the kind words :)

Unfortunately the documentation is quite limited at the moment. I am still working on finalizing a few things but documentation plans a certainly in the pipeline.

In the meantime I would be happy to try and answer any specific questions you might have. With respect to fills there are a couple examples that I would point you to (autofill.html, csg.html). You can also check out the source code here.

I would also point you to a newer refactored repo updated for typescript. Going forward I am focusing my work here as it is so much easier to develop bigger libraries like this in TS.

Anyway, thanks again for checking out the library - hopefully I can help you better understand things so you can start using it!

Cheers, Matt

P.S. - just out of curiosity:

RobertJG17 commented 2 days ago

Hey Matthew,

I appreciate your response. My colleague @coryortega and I were in the process of porting a Fill Stitch implementation from Python to JS, and we stumbled upon your library. We are actually currently playing with the TypeScript implementation and are trying to process the logic behind the various methods and interfaces. The organization helps out a lot and it's interesting to see how you built these interfaces from the ground up.

I've been coding for around 7 years. I'm sort of a mixed bagged of intermediate skills between iOS, python, JS, C++.

My colleague, Cory, is more adept with embroidery (and Javascript) than I am and has actual hands on experience with it. He consulted me to understand how we might programmatically plot the path of an embroidered design. I have a background in Applied Mathematics, so we were trying to conceptualize it from first principles with Graph Theory. Embroidery is a very interesting application of this branch of mathematics.