{{newin|[[0.8.0]]|080|type=function}}
Gets the current target [[Canvas]].

== Function ==
=== Synopsis ===
<source lang="lua">
canvas = love.graphics.getCanvas( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|Canvas|canvas|The Canvas set by [[love.graphics.setCanvas|setCanvas]]. Returns nil if drawing to the real screen.}}

== See Also ==
* [[parent::love.graphics]]
* [[Canvas]]
* [[love.graphics.setCanvas]]
[[Category:Functions]]
{{#set:Description=Returns the current target Canvas.}}
{{#set:Since=080}}
{{#set:Sub-Category=State}}
== Other Languages ==
{{i18n|love.graphics.getCanvas}}