##### Views

- Page
- Discussion
- View source
- History

# love.graphics.newFramebuffer

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

Removed in LÖVE 0.8.0
It has been renamed to love.graphics.newCanvas.

Creates a new framebuffer object for offscreen rendering.

| Framebuffers are susceptible to power of 2 syndrome. |

| This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! |

## Function

### Synopsis

framebuffer = love.graphics.newFramebuffer( )

### Arguments

None.

### Returns

`Framebuffer framebuffer`
  A new framebuffer with width/height equal to the window width/height.

## Function

### Synopsis

framebuffer = love.graphics.newFramebuffer( width, height )

### Arguments

`number width`
  The desired width of the framebuffer.
`number height`
  The desired height of the framebuffer.

### Returns

`Framebuffer framebuffer`
  A new framebuffer with specified width and height.

## See Also

- love.graphics
- Framebuffer
- love.graphics.setRenderTarget

## 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.newFramebuffer"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

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