addLine(to:)
Appends a straight line segment from the current point to the specified point.
Declaration
mutating func addLine(to end: CGPoint)Parameters
- end:
The location, in user space coordinates, for the end of the new line segment.
Discussion
After adding the line segment, the current point is set to the endpoint of the line segment.
See Also
Drawing a path
move(to:)addArc(center:radius:startAngle:endAngle:clockwise:transform:)addArc(tangent1End:tangent2End:radius:transform:)addCurve(to:control1:control2:)addEllipse(in:transform:)addLines(_:)addPath(_:transform:)addQuadCurve(to:control:)addRect(_:transform:)addRects(_:transform:)addRelativeArc(center:radius:startAngle:delta:transform:)addRoundedRect(in:cornerSize:style:transform:)closeSubpath()