DrawRoundedRect

Draw a rounded rectangle outline with rounding as a required parameter.

Syntax

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

Parameters

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

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

rounding (number): Corner rounding radius in pixels.

r, g, b (number): Color. Accepts 0..1 floats or 0..255 integers.

a (number, optional): Alpha. Default: 1.0.

thickness (number, optional): Border thickness in pixels. Default: 1.0.

Return(s)

None

Behavior

Convenience function that draws a rounded rectangle outline. Same as DrawRect with rounding, but with rounding as a dedicated required parameter for clarity.

Example(s)

Susano.BeginFrame()
Susano.DrawRoundedRect(100, 100, 200, 80, 12, 0, 255, 0, 255, 2)
Susano.SubmitFrame()