draw.RoundedBoxEx

From Garry's Mod
Jump to: navigation, search
 draw.RoundedBoxEx( )

Contents

Description

Draws a rounded rectangle. This function also lets you specify which corners are drawn rounded.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Arguments

number cornerRadius

Radius of the rounded corners, works best with a power of 2 number.

Arguments

number x

The x coordinate of the top left of the rectangle.

Arguments

number y

The y coordinate of the top left of the rectangle.

Arguments

number width

The width of the rectangle.

Arguments

number height

The height of the rectangle.

Arguments

table color

The color to fill the rectangle with. Uses the Color structure.

Arguments

boolean roundTopLeft=false

Whether the top left corner should be rounded.

Arguments

boolean roundTopRight=false

Whether the top right corner should be rounded.

Arguments

boolean roundBottomLeft=false

Whether the bottom left corner should be rounded.

Arguments

boolean roundBottomRight=false

Whether the bottom right corner should be rounded.
Personal tools
Navigation