Difference between revisions of "Sprite:setClip"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2015.04.04<br/> | '''<translate>Available since</translate>:''' Gideros 2015.04.04<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Clip Sprite contents from provided x, y position to provided width and height | <translate>Clip Sprite contents from provided x, y position to provided width and height |
Revision as of 09:29, 24 August 2018
Available since: Gideros 2015.04.04
Class: Sprite
Description
Clip Sprite contents from provided x, y position to provided width and height
Setting width or height to -1 will disable it
Sprite:setClip(x,y,width,height)
Parameters
x: (number) x position from where to clip
y: (number) y position from where to clip
width: (number) width of how much to display before clipping
height: (number) width of how much to display before clipping