Advertisement
eqeqwan21

Untitled

Jul 8th, 2025
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.15 KB | None | 0 0
  1. $circlesCount = isset($_GET['multiple']) && $_GET['multiple'] == 'true' ? 2 : 1;
  2.     $state = isset($_GET['state']) ? intval($_GET['state']) : 0;
  3.     $state &= 0xF;
  4.  
  5.     $k1_on  = ($state & 0x8) != 0;
  6.     $k2_on  = ($state & 0x4) != 0;
  7.     $any_on = ($state != 0);
  8.  
  9.     $eyeOn  = $incolor;
  10.     $eyeOff = 'black';
  11.  
  12.     $centerX = 78.845825;
  13.     $spacing = 30;
  14.  
  15.     if ($circlesCount === 2) {
  16.         $circle1 = '<circle style="fill:' . ($k1_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
  17.             ';stroke:none;stroke-width:0.26458332" cx="' . ($centerX - $spacing / 2) .
  18.             '" cy="136.13333" r="14" />';
  19.         $circle2 = '<circle id="dyra2" style="fill:' . ($k2_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
  20.             ';stroke:none;stroke-width:0.26458332" cx="' . ($centerX + $spacing / 2) .
  21.             '" cy="136.13333" r="14" />';
  22.     } else {
  23.         $circle1 = '<circle id="dyra" style="fill:' . ($any_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
  24.             ';stroke:none;stroke-width:0.26458332" cx="' . $centerX .
  25.             '" cy="136.13333" r="18.520834" />';
  26.         $circle2 = '';
  27.     }
  28.  
  29.     $doorSvg = '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement