line
forge.drawfunctionSince Forge API 1
Signaturepython
forge.draw.line(p1: Point,p2: Point,*,extend: str = 'none',color: Color | str | None = None,width: float = 1.0,dash: str = 'solid',id: str | None = None) -> DrawingA straight line between two points (each needs a price); extend makes it a ray.
Parameters
| Name | Type | Default |
|---|---|---|
| p1 | Point | |
| p2 | Point | |
| extend | str | 'none' |
| color | Color | str | None | None |
| width | float | 1.0 |
| dash | str | 'solid' |
| id | str | None | None |