Viewport:setClip: Difference between revisions

From GiderosMobile
remove language stuff
m Text replacement - "<source" to "<syntaxhighlight"
Line 4: Line 4:
=== Description ===
=== Description ===
Sets the viewport size.
Sets the viewport size.
<source lang="lua">
<syntaxhighlight lang="lua">
Viewport:setClip(x,y,width,height)
Viewport:setClip(x,y,width,height)
</source>
</source>

Revision as of 13:32, 13 July 2023

Available since: Gideros 2016.04
Class: Viewport

Description

Sets the viewport size. <syntaxhighlight lang="lua"> Viewport:setClip(x,y,width,height) </source>

Parameters

x: (number) x coordinate
y: (number) y coordinate
width: (number) viewport width
height: (number) viewport height