{{newinoldin|[[0.7.0]]|070|[[0.8.0]]|080|type=function|text=It has been renamed to [[love.graphics.newCanvas]]}}
Creates a new framebuffer object for offscreen rendering.
{{notice|Versions prior to 0.8.0 have Framebuffers that are susceptible to [[PO2_Syndrome|power of 2 syndrome]].}}
{{newobjectnotice}}
== Function ==
=== Synopsis ===
<source lang="lua">
framebuffer = love.graphics.newFramebuffer( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|Framebuffer|framebuffer|A new framebuffer with width/height equal to the window width/height.}}

== Function ==
=== Synopsis ===
<source lang="lua">
framebuffer = love.graphics.newFramebuffer( width, height )
</source>
=== Arguments ===
{{param|number|width|The desired width of the framebuffer.}}
{{param|number|height|The desired height of the framebuffer.}}
=== Returns ===
{{param|Framebuffer|framebuffer|A new framebuffer with specified width and height.}}

== See Also ==
* [[parent::love.graphics]]
* [[Constructs::Framebuffer]]
* [[love.graphics.setRenderTarget]]
[[Category:Functions]]
[[Sub-Category::Object Creation| ]]
{{#set:Description=Creates a new [[Framebuffer]].}}
== Other Languages ==
{{i18n|love.graphics.newFramebuffer}}