Skip to content

Commit

Permalink
Fix PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Feb 10, 2021
1 parent 5616283 commit 28dea6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MandelbrotSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function generate(MandelbrotSetRequest $request): void

$blackColor = imagecolorallocate($im, 0, 0, 0);
$alpha_color = imagecolorallocatealpha($im, 0, 0, 0, 127);
imagefill($im, 0, 0, $alpha_color);
imagefill($im, 0, 0, (int) $alpha_color);

for ($y = 0; $y <= $dim_y; $y++) { // browsing and evaluating each point
for ($x = 0; $x <= $dim_x; $x++) { // find the coordinates of the point that is added in each iteration
Expand Down Expand Up @@ -100,7 +100,7 @@ public function generate(MandelbrotSetRequest $request): void

// if in each iteration he held a new point at a distance of 2 or less, the original point is filled.
if ($i >= $itt) {
imagesetpixel($im, (int) round($x), (int) round($y), $blackColor);
imagesetpixel($im, (int) round($x), (int) round($y), (int) $blackColor);
}
}
}
Expand Down

0 comments on commit 28dea6e

Please sign in to comment.