Skip to content

Commit

Permalink
Comment background feature for now
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Oct 27, 2024
1 parent 0d6c55a commit c9dd6ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AntiBotLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ protected function generateRandomImage(string $word): array
$image = $manager->create($width, $height);

// Add link background
if ($this->background) {
$image->fill($this->asset('backgrounds/bg-' . random_int(1, 3) . '-' . (($this->darkTheme) ? 'l' : 'd') . '.png'));
// ->brightness(($this->darkTheme) ? mt_rand(5, 15) : mt_rand(55, 75));
}
// if ($this->background) {
// $image->fill($this->asset('backgrounds/bg-' . random_int(1, 3) . '-' . (($this->darkTheme) ? 'l' : 'd') . '.png'));
// // ->brightness(($this->darkTheme) ? mt_rand(5, 15) : mt_rand(55, 75));
// }

// Add link text
$image->text($word, (int) ($width / 2), (int) ($height / 2) + 1, function (FontFactory $font) use ($angle, $fontFile, $shadowColor): void {
Expand Down

0 comments on commit c9dd6ff

Please sign in to comment.