Difference between revisions of "Viewport:setClip"
From GiderosMobile
(Created page with "'''<translate>Available since</translate>:''' Gideros 2016.04<br/> '''<translate>Class</translate>:''' Viewport<br/> === Description === Sets...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | ''' | + | '''Available since:''' Gideros 2016.04<br/> |
− | ''' | + | '''Class:''' [[Viewport]]<br/> |
=== Description === | === Description === | ||
Sets the viewport size. | Sets the viewport size. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Viewport:setClip(x,y,width,height) | Viewport:setClip(x,y,width,height) | ||
− | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === |
Latest revision as of 16:10, 20 February 2024
Available since: Gideros 2016.04
Class: Viewport
Description
Sets the viewport size.
Viewport:setClip(x,y,width,height)
Parameters
x: (number) x coordinate
y: (number) y coordinate
width: (number) viewport width
height: (number) viewport height