Browse Source

Center flex

main
Matthias Neeracher 9 months ago
parent
commit
c07dee1dd5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      battery-case-generator.py

+ 1
- 1
battery-case-generator.py View File

@@ -217,7 +217,7 @@ def draw_flex(t, h):
cut = ((h-gap) / ncut) - gap
dx = args.flex_width*args.thickness
nlines = int(args.corner // dx)
x0 = .5*(args.corner - nlines*dx)
x0 = .5*(args.corner - (nlines-1)*dx)

turtle.forward(x0)
for line in range(nlines):


Loading…
Cancel
Save