Skip to content

pushClipRect

Pushes a clipping rectangle to restrict drawing area.

Syntax

lua
Ham.pushClipRect(minPos, maxPos, intersect)

Parameters

NameTypeDescription
minPostableTop-left position {x, y}
maxPostableBottom-right position {x, y}
intersectbooleanIntersect with existing clip rect

Example

lua
Ham.pushClipRect({50, 50}, {200, 200}, true)
-- Drawing here will be clipped
Ham.popClipRect()

See Also

Released under the ISC License.