##### Views

- Page
- Discussion
- View source
- History

# love.graphics.setLine

Removed in LÖVE 0.9.0
Use love.graphics.setLineWidth and love.graphics.setLineStyle.

Sets the line width and style.

## Function

### Synopsis

love.graphics.setLine( width, style )

### Arguments

`number width`
  The width of the line.
`LineStyle style ("smooth")`
  The LineStyle to use.

### Returns

Nothing.

## Example

love.graphics.setLine(2, "smooth")
love.graphics.line(15, 25, 69, 89)

## See Also

- love.graphics
- love.graphics.setLineWidth
- love.graphics.setLineStyle

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.graphics.setLine"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties