DRAWING FUNCTIONS
DrawBlurRect
Draws a blurred rectangle region on top of the scene.
Syntax
ONYX.DrawBlurRect(x, y, w, h, strength, rounding, tintR, tintG, tintB, tintA)Parameters
x, y(number) — Top-left corner in pixels.w, h(number) — Width and height in pixels.strength(int (optional)) — Blur strength; default 3.rounding(number (optional)) — Corner rounding in pixels; default 0.tintR, tintG, tintB(number (optional)) — Tint colour in [0, 1].tintA(number (optional)) — Tint alpha in [0, 1]; default 1.
Return(s)
None
Behavior
- Queues a blur rectangle into the current build buffer.
- With a tint it composites a frosted-glass effect on top.
- Not rendered until SubmitFrame is called.
Example(s)
ONYX.BeginFrame()
ONYX.DrawBlurRect(100, 100, 300, 200, 5, 12)
ONYX.SubmitFrame()