drawLines

fun drawLines(coords: Array<Point>, paint: Paint): Canvas
fun drawLines(coords: FloatArray, paint: Paint): Canvas

Draws pts using clip, Matrix and Paint paint.

Each pair of points draws a line segment. One line is drawn for every two points; each point is used once. If count is odd, the final point is ignored.

Each line segment respects paint PaintStrokeCap and Paint stroke width. PaintMode is ignored, as if were set to PaintMode.STROKE.

Always draws each element one at a time; is not affected by PaintStrokeJoin, and unlike drawPath(), does not create a mask from all points and lines before drawing.

Parameters

coords

array of points to draw

paint

stroke, blend, color, and so on, used to draw

See also