lovr.graphics.line

Draws lines between points. Each point will be connected to the previous point in the list.

lovr.graphics.line(x1, y1, z1, x2, y2, z2, ...)

Arguments

NameTypeDescription
x1numberThe x coordinate of the first point.
y1numberThe y coordinate of the first point.
z1numberThe z coordinate of the first point.
x2numberThe x coordinate of the second point.
y2numberThe y coordinate of the second point.
z2numberThe z coordinate of the second point.
...numberMore points.

Returns

Nothing


lovr.graphics.line(points)

Arguments

NameTypeDescription
pointstableA table of point positions, as described above.

Returns

Nothing

See also