TiledMaterial
Tiles a material over the space of the panel.
Arguments
IMaterial mat
Material to draw
Number tw
Width of the material
Number th
Height of the material
(Optional) Color col
Draw color
Example
local mat = Material("icons/money.png")
local pnl = vgui.Create("DPanel")
pnl:ClearPaint()
:TiledMaterial(mat, 32, 32, Color(255, 0, 0, 255))