GradientExampleCode: Difference between revisions
From Crumbled World Wiki
(Created page with "==Example== <syntaxhighlight lang="lua"> 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())) </syntaxhighlight>") |
(No difference)
|
Latest revision as of 07:57, 6 July 2025
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()))