Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _curveToOne(self, pt1, pt2, pt3):
RelativeCoordinatePen._curveToOne(self, roundIntPoint(pt1), roundIntPoint(pt2), roundIntPoint(pt3))
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"])
def _relativeMoveTo(self, pt):
pt = roundIntPoint(pt)
x, y = pt
self._heldMove = [x, y, "rmoveto"]
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"])
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"])
def _moveTo(self, pt):
RelativeCoordinatePen._moveTo(self, roundIntPoint(pt))
def _relativeLineTo(self, pt):
self._storeHeldMove()
pt = roundIntPoint(pt)
x, y = pt
self._program.extend([x, y, "rlineto"])
def _lineTo(self, pt):
RelativeCoordinatePen._lineTo(self, roundIntPoint(pt))