DrawRectFilled

Enqueue a filled rectangle in the current build buffer.

Syntax

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

Parameters

circle-info

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

rounding (number): Rounding, 0 for no rounding

Return(s)

circle-info

None

Behavior

circle-info

Appends a filled rectangle outline to the build buffer.

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

Example(s)

Last updated