|
@@ -134,12 +134,12 @@ |
|
|
block discarded – undo |
|
134
|
134
|
echo '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="' . $length . '" height="' . $length . '" viewBox="0 0 ' . $length . ' ' . $length . '" style="background-color:' . $background . '"><defs><style>.' . $class . '{fill:' . $foreground . '} rect{shape-rendering:crispEdges}</style></defs>'; |
|
135
|
135
|
|
|
136
|
136
|
// svg body |
|
137
|
|
- foreach($this->matrix AS $r=>$row){ |
|
|
137
|
+ foreach($this->matrix as $r=>$row){ |
|
138
|
138
|
//we'll combine active blocks within a single row as a lightweight compression technique |
|
139
|
139
|
$from = -1; |
|
140
|
140
|
$count = 0; |
|
141
|
141
|
|
|
142
|
|
- foreach($row AS $c=>$pixel){ |
|
|
142
|
+ foreach($row as $c=>$pixel){ |
|
143
|
143
|
if($pixel){ |
|
144
|
144
|
$count++; |
|
145
|
145
|
if($from < 0) |
Please login to merge, or discard this patch.