Line Inherits: 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. Properties paint(Paint) – A style to draw a line with. x1(Number) – The x-axis coordinate of the line's starting point. x2(Number) – The x-axis coordinate of the line's end point. y1(Number) – The y-axis coordinate of the line's starting point. y2(Number) – The y-axis coordinate of the line's end point. Properties# paint class-attribute instance-attribute # paint: Paint = field(default_factory=lambda: Paint()) A style to draw a line with. x1 instance-attribute # x1: Number The x-axis coordinate of the line's starting point. x2 instance-attribute # x2: Number The x-axis coordinate of the line's end point. y1 instance-attribute # y1: Number The y-axis coordinate of the line's starting point. y2 instance-attribute # y2: Number The y-axis coordinate of the line's end point.