fix burn correction for corner()

This commit is contained in:
Florian Festi 2013-06-08 15:19:28 +02:00
parent 4cbb586547
commit b0d321b4b2
2 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ class Boxes:
self.ctx.arc(0, radius+self.burn, radius+self.burn,
-0.5*math.pi, rad - 0.5*math.pi)
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)
self.continueDirection(rad)

View File

@ -66,17 +66,17 @@ class Silverware(Boxes):
def render(self, x, y, h, r):
self.ctx.save()
self.moveTo(10, 10)
self.moveTo(2, 2)
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.moveTo(x+20, 0)
self.moveTo(x+4*self.thickness, 0)
for i in range(3):
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.ctx.restore()