Thread

Thread

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

<thread
      color="32768"         // RGB color as integer
      code="1001"           // Optional: Thread code (free text)
      brand="Madeira"       // Optional: Thread brand (free text)
      description="Green"   // Optional: Description (free text)
/>

Color format

The color value is an integer RGB value:
  1. int colorRGB = Red + (Green << 8) + (Blue << 16)
Example:
  1. RGB (0, 128, 0) → Green
  2. 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’.

  1. EWA design recipe
  2. EWA API methods overview
  3. EWA data packages overview