Background
Draws a two-color linear gradient on the panel.
Arguments
Color col Color of the gradient
(Optional) Number dir Direction of the gradient, uses DOCK enums
(Optional) Number frac What fraction of the panel's size should be covered in the gradient? Number ranges from 0-1
(Optional) Boolean op Should the gradient face the opposite direction?
Example
local pnl = vgui.Create("DPanel")
pnl:ClearPaint()
:Background(Color(0, 255, 0))
:Gradient(Color(0, 0, 255))