MCPcopy Create free account
hub / github.com/PageBot/PageBot / newPath

Method newPath

Lib/pagebot/contexts/flatcontext/flatcontext.py:1148–1152  ·  view source on GitHub ↗

Creates a new Bézier path object to store subsequent path commands.

(self)

Source from the content-addressed store, hash-verified

1146 # P A T H
1147
1148 def newPath(self):
1149 """Creates a new Bézier path object to store subsequent path
1150 commands."""
1151 self._bezierpath = FlatBezierPath(self.b)
1152 return self._bezierpath
1153
1154 def drawGlyphPath(self, glyph):
1155 """Converts the cubic commands to a drawable path."""

Callers 3

getGlyphPathMethod · 0.95
ovalMethod · 0.95
polygonMethod · 0.95

Calls 1

FlatBezierPathClass · 0.90

Tested by

no test coverage detected