GradientExampleCode

From Crumbled World Wiki

Example

local panel = form:add(Panel(PanelSize(Vec2(-1))))
--create a background, white in the top and black at the bottom of the panel
panel:setBackground(Gradient(Vec3(1),Vec3()))