love.graphics.setLineJoin

Sets the line join style. See LineJoin for the possible options.

Function

Synopsis

love.graphics.setLineJoin( join )

Arguments

LineJoin join
The LineJoin to use.

Returns

Nothing.

Examples

Showcase the styles

function love.draw()
	local line = {0,0, 100,20, 40,40, 50,80}
	love.graphics.setLineWidth(15)
	love.graphics.setColor(1, 1, 1, .7)

	love.graphics.translate(300, 100)
	love.graphics.setLineJoin("miter")
	love.graphics.line(line)

	love.graphics.translate(0, 150)
	love.graphics.setLineJoin("none")
	love.graphics.line(line)

	love.graphics.translate(0, 150)
	love.graphics.setLineJoin("bevel")
	love.graphics.line(line)
end

See Also

Other Languages