Draw Rect

Draw Rect

Choose your operating system:

Windows

macOS

Linux

Draws a colored untextured quad on the HUD.

Target is HUD

Draw Rect
Target
Rect Color
Screen X
Screen Y
Screen W
Screen H

Inputs

In
Exec
Target
HUD Object Reference
Rect Color
Linear Color Structure

Color of the rect. Can be translucent.

Screen X
Float (single-precision)

Screen-space X coordinate of upper left corner of the quad.

Screen Y
Float (single-precision)

Screen-space Y coordinate of upper left corner of the quad.

Screen W
Float (single-precision)

Screen-space width of the quad (in pixels).

Screen H
Float (single-precision)

Screen-space height of the quad (in pixels).

Outputs

Out
Exec