ExperimentalGear/scripts/download/gradient.lua

17 lines
305 B
Lua
Raw Permalink Normal View History

local gradient = gfx.CreateSkinImage("multi/roomselect/lobby_select_gradiant.png", 1);
local draw = function(x,y)
gfx.Save()
local jw,jh = gfx.ImageSize(gradient);
gfx.BeginPath();
gfx.ImageRect(x/x, y/y+376, jw, jh, gradient,1,0);
gfx.Restore()
end
return {Draw = draw}