Canvas:getWidth

Returns the width of the Canvas, its Textures, and its depth buffer.

width = Canvas:getWidth()

Arguments

None

Returns

NameTypeDescription
widthnumberThe width of the Canvas, in pixels.

Notes

The width of a Canvas can not be changed after it is created.

See also