cam_rect()

Draws a rectangle on the camera view.

Syntax

cam_rect(x, y, width, height)

Parameters

Parameter Type Description Comment
x Number X-coordinate of the rectangle
y Number Y-coordinate of the rectangle
width Number Width of the rectangle
height Number Height of the rectangle

Return Value

Examples

Draw a rectangle at (50, 50) with size 100×80

cam_rect(50, 50, 100, 80);

See also

cam_grab
cam_color
cam_rect