Changes

Jump to navigation Jump to search

gc:clipRect

740 bytes added, 17:29, 9 July 2011
no edit summary
Line 1: Line 1:  +
'''clipRect''' is a function that is part of [[:Category:gc|gc]].
    +
Sets the clipping rectangle for subsequent graphics operations.
    +
<br /> {{Since|3.0}}
 +
 +
==Syntax==
 +
gc:'''clipRect'''(op, x, y, width, height)
 +
{| class="wikitable"
 +
|-
 +
! Parameter !! Type !! Description
 +
|-
 +
| <u><center>op</center></u> || string || Can either be "set", "intersect", "reset", or "null"
 +
|-
 +
| <u><center>x</center></u> || number || x coordinate
 +
|-
 +
| <u><center>y</center></u> || number || y coordinate
 +
|-
 +
| <u><center>width</center></u> || number || the width of the rectangle
 +
|-
 +
| <u><center>height</center></u> || number || the height of the rectangle
 +
|-
 +
|}
 +
== Example ==
 +
<syntaxhighlight>gc:clipRect("set", 20, 20, 50, 10)</syntaxhighlight>
 +
<br /><br />
 
[[Category:gc]]
 
[[Category:gc]]

Navigation menu