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