DrawRectFilled

Enqueue a filled rectangle in the current build buffer.

Syntax

Susano.DrawRectFilled(x, y, w, h, r, g, b[, a]) -> void

Parameters

x, y (number): Top-left corner in pixels.

w, h (number): Width and height in pixels.

r, g, b (number): Color in [0..1].

a (number, optional): Alpha in [0..1]. Default: 1.0

Return(s)

None

Behavior

Appends a filled rectangle outline to the build buffer.

Visible after Susano.SubmitFrame(). Persists until next submit.

Example(s)

Susano.BeginFrame()
Susano.DrawRectFilled(460,100, 120,80, 0,0,1, 0.6)
Susano.SubmitFrame()

Last updated