drawRectGradient(x, y, w, h, radius, color1, color2, vertical): void
x
y
w
h
radius
color1
color2
vertical
void
Draws a rounded rectangle filled with a two-color gradient.
number
The x position.
The y position.
The width.
The height.
The corner radius.
Color
color1 - The start color.
color2 - The end color.
boolean
True for top-to-bottom, false for left-to-right.
Last updated 11 hours ago