<?php
declare(strict_types=1);

$label = "SALE";
$radius = 18;
$image = imagecreatetruecolor(240, 100);
$background = imagecolorallocate($image, 160, 65, 40);
$white = imagecolorallocate($image, 255, 255, 255);
$accent = imagecolorallocate($image, 255, 210, 75);
imagefill($image, 0, 0, $background);
imagefilledellipse($image, 195, 50, $radius * 2, $radius * 2, $accent);
imagestring($image, 5, 20, 42, $label, $white);
imagepng($image, "badge.png");
echo "badge.png\n";
