Skip to content

Commit b11b77a

Browse files
authored
Merge pull request #138 from EmbroidePy/readme-colors
Include section on thread info manipulation
2 parents 7ff2b30 + cc556e6 commit b11b77a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,18 @@ There are many fully qualified methods of manipulating patterns. For example if
340340
pattern1 += pattern2
341341
```
342342

343-
You can also do pattern3 = pattern1 + pattern2 but that requires making an new pattern. With the `__iadd__()` dunder you can also perform actions like adding a colorchange.
343+
You can also do pattern3 = pattern1 + pattern2 but that requires making a new pattern. With the `__iadd__()` dunder you can also perform actions like adding a colorchange.
344344

345345
`pattern1 += "red"` will add a color change (if correct to do so), and a red thread to the threadlist.
346346

347347
Other elements like `pattern += ((0,0), (20,20), (0,0))` will also work to append stitches.
348348

349349
You can get a particular stitch of the pattern using `pattern[0]`. You can set string metadata elements `pattern['name'] = "My Design"`
350350

351+
### Thread Manipulation
352+
353+
If you wish to merely edit the thread colors these are located in the `.threadlist` attribute and you can call set a new `.color` or `.set_hex_color("#RRGGBB")`. You may also modify the various thread related metadata. This will be used for those embroidery types which preserve this thread information.
354+
351355
## Conversion
352356

353357
As pyembroidery is a fully fleshed out reader/writer within the mandate, it also does conversion.

0 commit comments

Comments
 (0)