Embroidery format XXX

The educational technology and digital learning wiki
Revision as of 20:17, 13 July 2019 by Tatarize (talk | contribs) (Created page with "Just a stub for now. XXX stop commands are color changes with the color changing to the same color it was just at. So they will appear as 0x7F 0x08 in the files. And just du...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Just a stub for now.

XXX stop commands are color changes with the color changing to the same color it was just at.

So they will appear as 0x7F 0x08 in the files. And just duplicate the color in the appended color log.

Header

  • The headers are 0x17 bytes of 0.
  • Length of stitches -1
  • 0x0C more bytes of 0.
  • The total number of colors.
  • 2 more bytes of 0.
  • The width of the pattern (2 bytes, le)
  • The height of the pattern (2 bytes, le)
  • The position of the last stitch x (2 bytes, le)
  • The position of the last stitch y (2 bytes, le)
  • The min_x value (2 bytes, le)
  • The min_y value (2 bytes, le)
  • 0x42 more bytes of 0.
  • 4 more bytes of 0.
  • 0x73 more bytes of 0
  • 0x20 (2 bytes, le)
  • 8 more bytes of 0

Body

The command stitches are flagged as 0x7F, they are always given a dx dy value. The 0x7D means a big stitch and uses 2 bytes little ended to encode the dx, dy

After 0x7F the known commands are:

  • 3 Trim
  • 1 Jump
  • 8 colorchange/stop
  • 0x7F End

The Compucon version of XXX sometimes uses 0x0A and 0x0B as such to specify the needle. And ends with 0x18 rather than 0x7F. The assumption is that that might be needle 14 stop.