Table of Contents

Sprite:setClip

Available since version: 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

Syntax:

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