- w, h = gfx.size()
- w = gfx.width()
- h = gfx.height()
SYNOPSIS
DESCRIPTION
Allows to query the size (in pixels) of the hardware framebuffer.
RETURN VALUE
The function gfx.size() returns two numbers, the width and height of the hardware
framebuffer. The functions gfx.width() and gfx.height() return the
width and height of the framebuffer as a single value each.
ERRORS
If no hardware framebuffer exists, all returned values are zero.
EXAMPLE
>
print (gfx.width(), gfx.height(), gfx.size())
480 272 480 272