Merge remote-tracking branch 'origin/master' into generic-writer

pull/143/head
Tatarize 2022-04-18 22:52:39 -07:00
commit 8f9a27b354
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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.