fix burn correction for corner()
This commit is contained in:
parent
4cbb586547
commit
b0d321b4b2
2
boxes.py
2
boxes.py
|
@ -75,7 +75,7 @@ class Boxes:
|
||||||
self.ctx.arc(0, radius+self.burn, radius+self.burn,
|
self.ctx.arc(0, radius+self.burn, radius+self.burn,
|
||||||
-0.5*math.pi, rad - 0.5*math.pi)
|
-0.5*math.pi, rad - 0.5*math.pi)
|
||||||
else:
|
else:
|
||||||
self.ctx.arc_negative(0, -(radius+self.burn), radius+self.burn,
|
self.ctx.arc_negative(0, -(radius-self.burn), radius-self.burn,
|
||||||
0.5*math.pi, rad + 0.5*math.pi)
|
0.5*math.pi, rad + 0.5*math.pi)
|
||||||
|
|
||||||
self.continueDirection(rad)
|
self.continueDirection(rad)
|
||||||
|
|
|
@ -66,17 +66,17 @@ class Silverware(Boxes):
|
||||||
def render(self, x, y, h, r):
|
def render(self, x, y, h, r):
|
||||||
self.ctx.save()
|
self.ctx.save()
|
||||||
|
|
||||||
self.moveTo(10, 10)
|
self.moveTo(2, 2)
|
||||||
self.wall(x, y, h+self.thickness+5, r)
|
self.wall(x, y, h+self.thickness+5, r)
|
||||||
self.moveTo(0, h+20)
|
self.moveTo(self.thickness, h+7*self.thickness)
|
||||||
self.centerWall(x,h)
|
self.centerWall(x,h)
|
||||||
self.moveTo(x+20, 0)
|
self.moveTo(x+4*self.thickness, 0)
|
||||||
|
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
self.smallWall(y, h)
|
self.smallWall(y, h)
|
||||||
self.moveTo(y/2.0+20, 0)
|
self.moveTo(y/2.0+5, 0)
|
||||||
|
|
||||||
self.moveTo(-1.5*y-80, h)
|
self.moveTo(-1.5*y-55, h-15)
|
||||||
self.basePlate(x, y, r)
|
self.basePlate(x, y, r)
|
||||||
|
|
||||||
self.ctx.restore()
|
self.ctx.restore()
|
||||||
|
|
Loading…
Reference in New Issue