aboutsummaryrefslogtreecommitdiffstats
path: root/Utils.lua
blob: bbae94deba398539def39c3e25bce392f45df48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--[[
	Utils.lua
	Used for unclassified functions
	by piernov

	Comment: a bit useless, but still a more convenient than nothing for Quickie's functions
]]--

local Utils = {}

function Utils.percentCoordinates(x, y) -- Convert percentage to absolute coordinates
    x = (x/100)*Screen.width
    y = (y/100)*Screen.height
    return x, y
end

return Utils