gc:clipRect
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 |
---|---|---|
string | Can either be "set", "intersect", "reset", or "null" | |
number | x coordinate | |
number | y coordinate | |
number | the width of the rectangle | |
number | the height of the rectangle |
Example
gc:clipRect("set", 20, 20, 50, 10)