Ejemplo n.º 1
0
 def _relativeCurveToOne(self, pt1, pt2, pt3):
     self._storeHeldMove()
     pt1 = roundIntPoint(pt1)
     pt2 = roundIntPoint(pt2)
     pt3 = roundIntPoint(pt3)
     x1, y1 = pt1
     x2, y2 = pt2
     x3, y3 = pt3
     self._program.extend([x1, y1, x2, y2, x3, y3, "rrcurveto"])
Ejemplo n.º 2
0
 def _relativeCurveToOne(self, pt1, pt2, pt3):
     self._storeHeldMove()
     pt1 = roundIntPoint(pt1)
     pt2 = roundIntPoint(pt2)
     pt3 = roundIntPoint(pt3)
     x1, y1 = pt1
     x2, y2 = pt2
     x3, y3 = pt3
     self._program.extend([x1, y1, x2, y2, x3, y3, "rrcurveto"])
Ejemplo n.º 3
0
 def _curveToOne(self, pt1, pt2, pt3):
     RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1),
                                       roundIntPoint(pt2),
                                       roundIntPoint(pt3))
Ejemplo n.º 4
0
 def _relativeLineTo(self, pt):
     self._storeHeldMove()
     pt = roundIntPoint(pt)
     x, y = pt
     self._program.extend([x, y, "rlineto"])
Ejemplo n.º 5
0
 def _lineTo(self, pt):
     RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))
Ejemplo n.º 6
0
 def _relativeMoveTo(self, pt):
     pt = roundIntPoint(pt)
     x, y = pt
     self._heldMove = [x, y, "rmoveto"]
Ejemplo n.º 7
0
 def _curveToOne(self, pt1, pt2, pt3):
     RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1), roundIntPoint(pt2), roundIntPoint(pt3))
Ejemplo n.º 8
0
 def _relativeLineTo(self, pt):
     self._storeHeldMove()
     pt = roundIntPoint(pt)
     x, y = pt
     self._program.extend([x, y, "rlineto"])
Ejemplo n.º 9
0
 def _lineTo(self, pt):
     RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))
Ejemplo n.º 10
0
 def _relativeMoveTo(self, pt):
     pt = roundIntPoint(pt)
     x, y = pt
     self._heldMove = [x, y, "rmoveto"]