Close #19 : Player lightmeter bases off the ambient light of the world

This commit is contained in:
2014-06-25 07:56:22 -07:00
parent d3b178176d
commit ed070b360e
5 changed files with 17 additions and 139 deletions

View File

@@ -13,6 +13,13 @@ function array_unique(arr) {
return a;
}
function array_average(arr) {
return arr.reduce(function (a,b) {
return (a + b);
}) / arr.length;
}
function stringSize(str, font)
{
var width = 0;