DrawBorderRect
Draw a filled rectangle with a colored border in a single call.
Syntax
Susano.DrawBorderRect(x, y, w, h, fillR, fillG, fillB, fillA, borderR, borderG, borderB[, borderA][, borderThickness][, rounding]) -> void
Parameters
x, y (number): Top-left corner in pixels.
w, h (number): Width and height in pixels.
fillR, fillG, fillB, fillA (number): Fill color. Accepts 0..1 floats or 0..255 integers.
borderR, borderG, borderB (number): Border color. Accepts 0..1 floats or 0..255 integers.
borderA (number, optional): Border alpha. Default: 1.0.
borderThickness (number, optional): Border thickness in pixels. Default: 1.0.
rounding (number, optional): Corner rounding in pixels. Default: 0.0.
Return(s)
None
Behavior
Draws a filled rectangle first, then overlays a rectangle outline on top with the border color. Combines DrawRectFilled + DrawRect in one call.
Example(s)
Susano.BeginFrame()
Susano.DrawBorderRect(100, 100, 250, 60, 30,30,50,255, 100,100,200,255, 2, 6)
Susano.SubmitFrame()