Close #19 : Player lightmeter bases off the ambient light of the world
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user