Thread

<thread 
   color="32768" 		// RGB as int
   code="1001" 			// free text string
   brand="Madeira" 		// free text string
   description="Green" 		// free text string
/>

The colour of the embroidery thread is specified by the thread component.

The color parameter is an integer containing the RGB values of the colour. It is obtained by the following code:

int colorRGB = color.Red + (color.Green << 8) + (color.Blue << 16);

The code, brand and description strings are free-text strings for the purposes of production. They are typically obtained from an embroidery thread chart.