Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMV Y-axis flipped. #104

Merged
merged 2 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyembroidery/PmvReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def read_pmv_stitches(f, out, settings=None):
if x > 32:
x = -(64 - x) # This is a 6 bit signed number.
x *= 2.5
y *= 2.5
y *= -2.5
dx = x
out.stitch_abs(px + x, y) # This is a hybrid relative, absolute value.
px += dx
Expand Down
4 changes: 2 additions & 2 deletions pyembroidery/PmvWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def write(pattern, f, settings=None):
for stitch in pattern.stitches:
data = stitch[2]
x = stitch[0]
y = stitch[1]
y = -stitch[1]
if data == STITCH or data == JUMP:
point_count += 1
if x > max_x:
Expand Down Expand Up @@ -57,7 +57,7 @@ def write(pattern, f, settings=None):
break
data = stitch[2] & COMMAND_MASK
x = stitch[0]
y = stitch[1]
y = -stitch[1]
x *= scale_x
y -= center_y
y *= scale_y
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyembroidery",
version="1.4.21",
version="1.4.22",
author="Tatarize",
author_email="[email protected]",
description="Embroidery IO library",
Expand Down