Line
smile.pictures.Line
object Line
Factory object for creating lines.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Line.type
Members list
Value members
Concrete methods
def apply(startX: Double, startY: Double, endX: Double, endY: Double, strokeStyle: StrokeStyle): VectorGraphic
Creates a line between two specified points with a given stroke style.
Creates a line between two specified points with a given stroke style.
Value parameters
- endX
-
The x-coordinate of the end point of the line.
- endY
-
The y-coordinate of the end point of the line.
- startX
-
The x-coordinate of the start point of the line.
- startY
-
The y-coordinate of the start point of the line.
- strokeStyle
-
The style to be applied to the stroke of the line.
Attributes
- Returns
-
A
VectorGraphic
representing the line.
Creates a line between two specified positions with a given stroke style.
Creates a line between two specified positions with a given stroke style.
Value parameters
- end
-
The end position of the line.
- start
-
The start position of the line.
- strokeStyle
-
The style to be applied to the stroke of the line.
Attributes
- Returns
-
A
VectorGraphic
representing the line.
In this article