Skip to main content

renderer.blur

danger

Using this function in a paint_ui callback will result in 'too many indices for index buffer' crashes. Calls to this function are not flushed when not in-game, so they eventually pile-up and exceed the limit.

renderer.blur

Creates a region on the screen that blurs everything behind it.

renderer.blur(x: number, y: number, w: number, h: number, alpha: number, amount: number)

Arguments

NameDescriptionType
xThe X coordinate of the rectanglenumber
yThe Y coordinate of the rectanglenumber
wThe width of the rectanglenumber
hThe height of the rectanglenumber
alphaThe alpha of the blur, in the range of 0.0 to 1.0number
amountThe amount of blur, in the range of 0.0 to 1.0number