Sprite:setClip: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2015.04.04<br/> === Description === Clip Sprite contents from provided x, y position to provided width and height Setting width or he..."
 
No edit summary
Line 6: Line 6:
Setting width or height to -1 will disable it
Setting width or height to -1 will disable it
<source lang="lua">
<source lang="lua">
= Sprite:setClip(xywidthheight,)
Sprite:setClip(x,y,width,height)
</source>
</source>
'''x:''' (number) x position from where to clip ''''''<br/>
'''x''': (number) x position from where to clip ''''''<br/>
'''y:''' (number) y position from where to clip ''''''<br/>
'''y''': (number) y position from where to clip ''''''<br/>
'''width:''' (number) width of how much to display before clipping ''''''<br/>
'''width''': (number) width of how much to display before clipping ''''''<br/>
'''height:''' (number) width of how much to display before clipping ''''''<br/>
'''height''': (number) width of how much to display before clipping ''''''<br/>

Revision as of 09:20, 23 August 2018

Available since: Gideros 2015.04.04

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)

'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 '