love.graphics.setLineStyle

Available since LÖVE 0.3.2
This function is not supported in earlier versions.

Sets the line style.

Function

Synopsis

love.graphics.setLineStyle( style )

Arguments

LineStyle style
The LineStyle to use. Line styles include smooth and rough.

Returns

Nothing.

Example

Draw lines

function love.load()
	love.graphics.setLineStyle( "rough" )
	love.graphics.setLineWidth( 0.8 )
end

function love.draw()
	love.graphics.line (0,0, 200, 100)
	love.graphics.line (0,100, 200, 0)
end

See Also


Other Languages