diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-11-07 00:07:35 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-11-07 00:07:35 -0500 |
| commit | 38a05e947d041f8b9c42e49eb075b972a7e9355c (patch) | |
| tree | 95ac5ab2b2f323d495745166154a904915bcf686 /gamemode/shared/sparkel.lua | |
| parent | 021d8e86d264e098f9fdce265300ceeb9207506e (diff) | |
| download | artery-38a05e947d041f8b9c42e49eb075b972a7e9355c.tar.gz artery-38a05e947d041f8b9c42e49eb075b972a7e9355c.tar.bz2 artery-38a05e947d041f8b9c42e49eb075b972a7e9355c.zip | |
Added luadocs for shared libraries
Started working on documentation
Diffstat (limited to 'gamemode/shared/sparkel.lua')
| -rw-r--r-- | gamemode/shared/sparkel.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gamemode/shared/sparkel.lua b/gamemode/shared/sparkel.lua deleted file mode 100644 index c839059..0000000 --- a/gamemode/shared/sparkel.lua +++ /dev/null @@ -1,20 +0,0 @@ - - -local function sparkel(...) - local arg = {...} - local looparg = type(arg[1]) == "string" and string.Explode(" ",arg[1],false) or arg - --One pass to find the high and low point - local max,min = tonumber(looparg[1]),tonumber(looparg[1]) - for k,v in pairs(looparg) do - v = tonumber(v) - max = max > v and max or v - min = min < v and min or v - end - local scale = (max-min) / 7 - for k,v in pairs(looparg) do - Msg(utf8.char(9600 + ( 1 + (v / scale)))) - end - Msg("\n") -end - -return sparkel |
