draw.RoundedBoxEx
draw.RoundedBoxEx( number cornerRadius, number x, number y, number width, number height, table color, boolean roundTopLeft = false, boolean roundTopRight = false, boolean roundBottomLeft = false, boolean roundBottomRight = false )
Description
Draws a rounded rectangle. This function also lets you specify which corners are drawn rounded.
This function actually draws rectangles with 'gui/cornerX' textures applied to it's rounded corners. It means that this function will fail (or will be drawn not as expected) with any vertex operations, such as model matrices like cam.Start3D2D (corners would be pixelated) or stencil operations. Consider using surface.DrawPoly or mesh library
This is a rendering function that requires a 2d rendering context.
This means that it will only work in 2d Rendering Hooks.
Arguments
Page views: 37,763
Updated: This Year
Updated: This Year