Skip to content

Commit b9eecb8

Browse files
committed
Use BGR for patt file order
1 parent affd22e commit b9eecb8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pymarker/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ def generate_patt(filename: str, output: str = None, string: bool = False):
3636
patt = PattStr() if string else create_and_open_patt(output + name)
3737
for i in range(0, 4):
3838
r, g, b = new_image.split()
39-
color_to_file(r, patt)
40-
color_to_file(g, patt)
39+
# AR Toolkit expects BGR order
4140
color_to_file(b, patt)
41+
color_to_file(g, patt)
42+
color_to_file(r, patt)
4243
if i != 3:
4344
patt.write("\n")
4445
new_image = new_image.rotate(90)

0 commit comments

Comments
 (0)