Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $circlesCount = isset($_GET['multiple']) && $_GET['multiple'] == 'true' ? 2 : 1;
- $state = isset($_GET['state']) ? intval($_GET['state']) : 0;
- $state &= 0xF;
- $k1_on = ($state & 0x8) != 0;
- $k2_on = ($state & 0x4) != 0;
- $any_on = ($state != 0);
- $eyeOn = $incolor;
- $eyeOff = 'black';
- $centerX = 78.845825;
- $spacing = 30;
- if ($circlesCount === 2) {
- $circle1 = '<circle style="fill:' . ($k1_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
- ';stroke:none;stroke-width:0.26458332" cx="' . ($centerX - $spacing / 2) .
- '" cy="136.13333" r="14" />';
- $circle2 = '<circle id="dyra2" style="fill:' . ($k2_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
- ';stroke:none;stroke-width:0.26458332" cx="' . ($centerX + $spacing / 2) .
- '" cy="136.13333" r="14" />';
- } else {
- $circle1 = '<circle id="dyra" style="fill:' . ($any_on ? $eyeOn : $eyeOff) . ';fill-opacity:' . $opa .
- ';stroke:none;stroke-width:0.26458332" cx="' . $centerX .
- '" cy="136.13333" r="18.520834" />';
- $circle2 = '';
- }
- $doorSvg = '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement