getMatrix();
$width = $matrix->getWidth();
$quiet = 2;
$total = $width + 2 * $quiet;
$cells = '';
for ($y = 0; $y < $width; $y++) {
for ($x = 0; $x < $width; $x++) {
if ($matrix->get($x, $y) === 1) {
$cells .= sprintf('', $x + $quiet, $y + $quiet);
}
}
}
return sprintf(
'',
$total,
$size,
$cells,
);
}
}