All pastes #814163 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-13 01:11 UTC
rendered paste body
class LineTo(Line):
 def __init__(self):
  Line.__init__(self)

 def draw(self,ctx):
  ctx.save()
  Shape.draw(self,ctx)
  ctx.move_to(self.p0.x,self.p0.y)
  ctx.line_to(self.pe.x,self.pe.y)
  self.stroke(ctx)
  ctx.restore()