gc:clipRect

From Inspired-Lua Wiki
Revision as of 17:29, 9 July 2011 by Adriweb (talk | contribs)
Jump to navigation Jump to search

clipRect is a function that is part of gc.

Sets the clipping rectangle for subsequent graphics operations.


This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

gc:clipRect(op, x, y, width, height)

Parameter Type Description
op
string Can either be "set", "intersect", "reset", or "null"
x
number x coordinate
y
number y coordinate
width
number the width of the rectangle
height
number the height of the rectangle

Example

gc:clipRect("set", 20, 20, 50, 10)