diff options
| author | Kaalleen <reni@allenka.de> | 2022-11-27 10:17:43 +0100 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-11-27 10:17:43 +0100 |
| commit | b8161a97c3d279265cb322697f5e2e824b666fbc (patch) | |
| tree | 1c557195be762a82aff8528870bb05b88ea84247 /lib/elements/satin_column.py | |
| parent | 3f346ea5ff0703b0d6b7bc723fec91a92fce0eed (diff) | |
satin offset_points
Diffstat (limited to 'lib/elements/satin_column.py')
| -rw-r--r-- | lib/elements/satin_column.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 886b3f85..26fc411d 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -124,7 +124,7 @@ class SatinColumn(EmbroideryElement): @param( 'pull_compensation_percent', _('Pull compensation percentage'), - tooltip=_('Additional pull compensation which varries as a percentage of stitch width. ' + tooltip=_('Additional pull compensation which varies as a percentage of stitch width. ' 'Two values separated by a space may be used for an aysmmetric effect.'), unit='% (each side)', type='float', @@ -654,7 +654,7 @@ class SatinColumn(EmbroideryElement): # don't contract beyond the midpoint, or we'll start expanding if offset_total < -distance: - scale = distance / offset_total + scale = -distance / offset_total offset_a = offset_a * scale offset_b = offset_b * scale @@ -799,6 +799,7 @@ class SatinColumn(EmbroideryElement): # center line between the bezier curves. inset_prop = -np.array([self.center_walk_underlay_position, 100-self.center_walk_underlay_position]) / 100 + # Do it like contour underlay, but inset all the way to the center. forward, back = self.plot_points_on_rails( self.center_walk_underlay_stitch_length, |
