A Ruby command-line app which which transforms Open Cross Stitch (.oxs) patterns into "shadow knitting" patterns.
This project requires Ruby 3.4.1.
$ git clone git@github.com:nahiluhmot/illusion_patterns
$ cd ./illusion_patterns/
$ bundle installTo generate a shadow knitting pattern from your pattern, run:
$ ./bin/illusion_patterns path/to/your/pattern.oxs 0 29 upBreakdown:
./bin/illusion_patterns- the executable provided by this applicationpath/to/your/pattern.oxs- an Open Cross Stitch file which contains your pattern0- the palette index of the background color of your pattern; this will be used for the "light" shadow knitting stripes29- the palette index of the "dark" shadow knitting stripes; this color should not be used elsewhere in your patternup- the direction from which the pattern should be visible;downis also valid