The <thread> element defines the color and details of an
embroidery thread. It’s used wherever a thread color is needed — for example,
when defining a lettering, monogram, recolor, or object.
XML structure
The color value is an integer RGB value:
- int colorRGB = Red + (Green <<
8) + (Blue << 16)
Example:
- RGB (0, 128, 0) → Green
- color = 0 + (128 << 8) +
(0 << 16) = 32768
Other attributes
Attribute | Details |
code | The thread’s catalog or chart code (free text). |
brand | Brand of the thread – e.g. Madeira, Isacord, etc. |
description | Free-text description – e.g. ‘Emerald Green’. |
- EWA design recipe
- EWA API methods overview
- EWA data packages overview