Skip to content

Documentation / spryte / polyline

Function: polyline() ​

polyline(draw, points, width, color, closed?, count?): void

Defined in: shapes.ts:19

Line through points (x0, y0, x1, y1, …), width wide, with mitred joins and flat ends. closed joins the last point to the first.

Parameters ​

draw ​

Draw

points ​

ArrayLike<number>

width ​

number

color ​

Color

closed? ​

boolean = false

count? ​

number = ...

Returns ​

void