{{newin|[[0.9.0]]|090|type=function}}
Gets the width and height of the Canvas.
== Function ==
=== Synopsis ===
<source lang="lua">
width, height = Canvas:getDimensions( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|width|The width of the Canvas, in pixels.}}
{{param|number|height|The height of the Canvas, in pixels.}}
== See Also ==
* [[Canvas]]
[[Category:Functions]]
{{#set:Description=Gets the width and height of the Canvas.}}
== Other Languages ==
{{i18n|Canvas:getDimensions}}