Line Examples# See these. Line # Bases: Shape Draws a line between the given points using the given paint. Note The line is always rendered as a stroke, regardless of the value of paint's style property. paint # paint: Paint = field(default_factory=lambda: Paint()) A style to draw a line with. x1 # x1: Number The x-axis coordinate of the line's starting point. x2 # x2: Number The x-axis coordinate of the line's end point. y1 # y1: Number The y-axis coordinate of the line's starting point. y2 # y2: Number The y-axis coordinate of the line's end point.