Beispiel #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"])
Beispiel #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"])
Beispiel #3
0
 def _curveToOne(self, pt1, pt2, pt3):
     RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1),
                                       roundIntPoint(pt2),
                                       roundIntPoint(pt3))
Beispiel #4
0
 def _relativeLineTo(self, pt):
     self._storeHeldMove()
     pt = roundIntPoint(pt)
     x, y = pt
     self._program.extend([x, y, "rlineto"])
Beispiel #5
0
 def _lineTo(self, pt):
     RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))
Beispiel #6
0
 def _relativeMoveTo(self, pt):
     pt = roundIntPoint(pt)
     x, y = pt
     self._heldMove = [x, y, "rmoveto"]
Beispiel #7
0
 def _curveToOne(self, pt1, pt2, pt3):
     RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1), roundIntPoint(pt2), roundIntPoint(pt3))
Beispiel #8
0
 def _relativeLineTo(self, pt):
     self._storeHeldMove()
     pt = roundIntPoint(pt)
     x, y = pt
     self._program.extend([x, y, "rlineto"])
Beispiel #9
0
 def _lineTo(self, pt):
     RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))
Beispiel #10
0
 def _relativeMoveTo(self, pt):
     pt = roundIntPoint(pt)
     x, y = pt
     self._heldMove = [x, y, "rmoveto"]