+import { ArrayFun } from "@/utils/array";
+
// Turn (human) marks into coordinates
function getMarkArray(marks)
{
if (!marks || marks == "-")
return [];
- let markArray = doubleArray(V.size.x, V.size.y, false);
+ let markArray = ArrayFun.init(V.size.x, V.size.y, false);
const squares = marks.split(",");
for (let i=0; i<squares.length; i++)
{
{
if (!shadow || shadow == "-")
return [];
- let shadowArray = doubleArray(V.size.x, V.size.y, false);
+ let shadowArray = ArrayFun.init(V.size.x, V.size.y, false);
const squares = shadow.split(",");
for (let i=0; i<squares.length; i++)
{