Skip to content

draw.RoundedRect

Syntax

draw.RoundedRect(x1, y1, x2, y2, radius, tl, tr, bl, br)

Parameters

x1int
First point number of x.
y1int
First point number of y.
x2int
Second point number of x.
y2int
Second point number of y.
radiusint
Amount of roundness.
tlint
Round top left corner.
trint
Round top right corner.
blint
Round bottom left corner.
brint
Round bottom right corner.

Preview