DRAWING FUNCTIONS

DrawRoundedRectFilled

Draws a filled rectangle with rounded corners.

Syntax

ONYX.DrawRoundedRectFilled(x, y, w, h, rounding, r, g, b, a)

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) — Colour; floats in [0,1] or 0-255 integers.
  • a (number (optional)) — Alpha; default 1.

Return(s)

None

Behavior

  • Convenience wrapper around DrawRectFilled with rounding as a required argument.

Example(s)

ONYX.BeginFrame()
ONYX.DrawRoundedRectFilled(100, 100, 200, 60, 12, 0.55, 0.35, 0.85, 1)
ONYX.SubmitFrame()