diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/vec.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/vec.js b/utils/vec.js index 9808c8b..f4a625c 100644 --- a/utils/vec.js +++ b/utils/vec.js @@ -24,3 +24,6 @@ exports.sub = function(orig, vec){ exports.dot = function(orig,vec){ return elem(orig, vec, (a,b) => a*b); } +exports.tileToChar = function(orig){ + return exports.dot(orig, [8,16]); +} |