From cc556e66eaac25256f8c2bd47652f176e01c996e Mon Sep 17 00:00:00 2001 From: Tatarize Date: Tue, 4 Jan 2022 08:15:47 -0800 Subject: [PATCH] Include section on thread info manipulation --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f083a4..06dd069 100644 --- a/README.md +++ b/README.md @@ -340,7 +340,7 @@ There are many fully qualified methods of manipulating patterns. For example if pattern1 += pattern2 ``` -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. +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. `pattern1 += "red"` will add a color change (if correct to do so), and a red thread to the threadlist. @@ -348,6 +348,10 @@ Other elements like `pattern += ((0,0), (20,20), (0,0))` will also work to appen You can get a particular stitch of the pattern using `pattern[0]`. You can set string metadata elements `pattern['name'] = "My Design"` +### Thread Manipulation + +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. + ## Conversion As pyembroidery is a fully fleshed out reader/writer within the mandate, it also does conversion.