Chronicles of Emacs : The Editor and the T-shirt

T-shirt pattern

 

You can generate a preliminary pattern based on your measurements for a custom fit T-shirt using GNU Emacs. This will generate an SVG image which you can print and use for tailoring. Don't forget to add allowance for seams.


- Set your measurements in tailor.el

 
(defun tailor--bust (svg)
  (let* ((cmds nil)
         (body-length    72)
         (chest          56)
         (waist          56)
         (shoulder       48)
         (sleeve-length  21)
         (arm-hole       26.5)
         (neck-back      5)
         (neck-front     10)
         (neck-opening   17)
         (sleeve-opening 19)

- Evaluate buffer using menu or M-x eval-buffer .

- Execute M-x tailor to generate the SVG.

 

Code:

https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/svg.el
https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/tailor.el
 

 

Comments

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Mozilla Readability in GNU Emacs

Data Visualization with GNU Emacs