Draw multiple connected line segments.
(
page: 'Page',
points: list,
color: OptSeq = (0,),
fill: OptSeq = None,
dashes: OptStr = None,
width: float = 1,
morph: OptSeq = None,
lineCap: int = 0,
lineJoin: int = 0,
overlay: bool = True,
closePath: bool = False,
stroke_opacity: float = 1,
fill_opacity: float = 1,
oc: int = 0,
)
| 11150 | return Q |
| 11151 | |
| 11152 | def draw_polyline( |
| 11153 | page: 'Page', |
| 11154 | points: list, |
| 11155 | color: OptSeq = (0,), |
| 11156 | fill: OptSeq = None, |
| 11157 | dashes: OptStr = None, |
| 11158 | width: float = 1, |
| 11159 | morph: OptSeq = None, |
| 11160 | lineCap: int = 0, |
| 11161 | lineJoin: int = 0, |
| 11162 | overlay: bool = True, |
| 11163 | closePath: bool = False, |
| 11164 | stroke_opacity: float = 1, |
| 11165 | fill_opacity: float = 1, |
| 11166 | oc: int = 0, |
| 11167 | ) -> Point: |
| 11168 | """Draw multiple connected line segments.""" |
| 11169 | img = page.new_shape() |
| 11170 | Q = img.draw_polyline(points) |
| 11171 | img.finish( |
| 11172 | color=color, |
| 11173 | fill=fill, |
| 11174 | dashes=dashes, |
| 11175 | width=width, |
| 11176 | lineCap=lineCap, |
| 11177 | lineJoin=lineJoin, |
| 11178 | morph=morph, |
| 11179 | closePath=closePath, |
| 11180 | stroke_opacity=stroke_opacity, |
| 11181 | fill_opacity=fill_opacity, |
| 11182 | oc=oc, |
| 11183 | ) |
| 11184 | img.commit(overlay) |
| 11185 | |
| 11186 | return Q |
| 11187 | |
| 11188 | def draw_quad( |
| 11189 | page: 'Page', |