Location: PHPKode > projects > BotDetect CAPTCHA > BotDetect-PHP-CAPTCHA-Component-vAlpha1-Build201202051720/CaptchaLibrary/BotDetect/CaptchaClass.php
<?php
declare(encoding='UTF-8'); abstract class Enum { } final class SoundFormat extends Enum { private function __construct() {} public static $Names; const Unknown = 0; const WavPcm16bit8kHzMono = 1; const WavPcm8bit8kHzMono = 2; public static function GetName($_Owhbkjkr37ty85j6op9tu1m906) { if (!is_int($_Owhbkjkr37ty85j6op9tu1m906)) { throw new Exception("\125\156\153\156\157\x77\156\40\x65\x6e\x75\x6d\145\x72\141\x74\x65\144\40\166\x61\x6c\165\145\x3a\40".$_Owhbkjkr37ty85j6op9tu1m906); } if (array_key_exists($_Owhbkjkr37ty85j6op9tu1m906, SoundFormat::$Names)) { return SoundFormat::$Names[$_Owhbkjkr37ty85j6op9tu1m906]; } else { throw new Exception("\125\x6e\153\156\x6f\x77\x6e\40\x65\156\x75\155\145\162\141\164\145\x64\40\x76\141\x6c\165\x65\72\x20".$_Owhbkjkr37ty85j6op9tu1m906); } } public static function GetValue($_O12ap499dd2cdn60xpcun8kc6m) { if (!StringHelper::HasValue($_O12ap499dd2cdn60xpcun8kc6m)) { throw new Exception("\125\x6e\153\156\x6f\x77\x6e\x20\145\156\x75\155\145\x72\141\x74\145\144\40\156\141\x6d\x65\x3a\40".$_O12ap499dd2cdn60xpcun8kc6m); } $_lpt0001p8bj2oiu19e10f = CollectionHelper::StringArraySearch($_O12ap499dd2cdn60xpcun8kc6m, SoundFormat::$Names); if (false !== $_lpt0001p8bj2oiu19e10f) { return $_lpt0001p8bj2oiu19e10f; } else { throw new Exception("\125\x6e\153\156\x6f\167\x6e\40\145\156\165\155\x65\x72\141\164\x65\144\40\156\x61\x6d\x65\72\40".$_O12ap499dd2cdn60xpcun8kc6m); } } public static function TryGetName($_1pbhc0a3ldnw3l3hf5moeh3ait) { if (!is_int($_1pbhc0a3ldnw3l3hf5moeh3ait)) { return; } if (array_key_exists($_1pbhc0a3ldnw3l3hf5moeh3ait, SoundFormat::$Names)) { return SoundFormat::$Names[$_1pbhc0a3ldnw3l3hf5moeh3ait]; } else { return; } } public static function TryGetValue($_l7hbpymkt6uzfztlto29rb31en) { if (!StringHelper::HasValue($_l7hbpymkt6uzfztlto29rb31en)) { return; } $_lj3vytqm3gyqe18z = CollectionHelper::StringArraySearch($_l7hbpymkt6uzfztlto29rb31en, SoundFormat::$Names); if (false !== $_lj3vytqm3gyqe18z) { return $_lj3vytqm3gyqe18z; } else { return; } } } SoundFormat::$Names = array( SoundFormat::WavPcm16bit8kHzMono => "\127\x61\166\x50\143\155\61\x36\142\x69\x74\70\x6b\110\172\115\157\x6e\x6f", SoundFormat::WavPcm8bit8kHzMono => "\x57\x61\166\120\x63\155\x38\x62\151\x74\70\x6b\110\172\x4d\157\x6e\157" ); final class SoundFormatFamily { private function __construct() {} const WavPcm = 0; public static function Get($_01zxba2s2oifc5jo) { $_0wklvasc26hndwkiig3kx1d8h3; switch ($_01zxba2s2oifc5jo) { case 1 : $_0wklvasc26hndwkiig3kx1d8h3 = SoundFormatFamily::WavPcm; break; case 2 : $_0wklvasc26hndwkiig3kx1d8h3 = SoundFormatFamily::WavPcm; break; default: throw new Exception("\x55\x6e\153\156\x6f\167\x6e\40\x53\x6f\165\x6e\144\x46\157\x72\x6d\141\x74\40".$_01zxba2s2oifc5jo); } return $_0wklvasc26hndwkiig3kx1d8h3; } } interface IAudio { } class Audio { public static function GetAudio($_129gtv9y7vkwfx7e31r9h, $_Oc4qlkkzvymvkekh) { $_1r4a11hwqhmfc4qq6ocgj = null; switch ($_Oc4qlkkzvymvkekh) { case 1 : case 2 : $_1r4a11hwqhmfc4qq6ocgj = new PcmSound($_129gtv9y7vkwfx7e31r9h, $_Oc4qlkkzvymvkekh); break; default: throw new Exception("\125\156\x6b\x6e\x6f\x77\156\40\x53\157\x75\156\x64\x46\157\x72\155\141\x74\x3a\x20{$_Oc4qlkkzvymvkekh}"); } return $_1r4a11hwqhmfc4qq6ocgj; } protected $m_SoundFormat; public function get_SoundFormat() { return $this->m_SoundFormat; } public function __get($_08v2bw1nvent9hkafc4xh9r1cw) { if (method_exists($this, ($_i1fbvnjjsvar9wzs = "\x67\x65\164\137".$_08v2bw1nvent9hkafc4xh9r1cw))) { return $this->$_i1fbvnjjsvar9wzs(); } else return; } public function __isset($_1dpx23gp9nhm8hdr) { if (method_exists($this, ($_Imtolohe8rlo0kff = "\x69\x73\x73\145\164\x5f".$_1dpx23gp9nhm8hdr))) { return $this->$_Imtolohe8rlo0kff(); } else return; } public function __set($_oqd5j31lz3espijuze6rsdek65, $_ljlisaps8n8fcsuh5cdhq) { if (method_exists($this, ($_1dajfgamk2dsv3807gh5e = "\163\x65\x74\x5f".$_oqd5j31lz3espijuze6rsdek65))) { $this->$_1dajfgamk2dsv3807gh5e($_ljlisaps8n8fcsuh5cdhq); } } public function __unset($_orne0r95v4wa89zk) { if (method_exists($this, ($_0yqpvzhhy09jz2fjlstca = "\x75\156\x73\x65\164\137".$_orne0r95v4wa89zk))) { $this->$_0yqpvzhhy09jz2fjlstca(); } } } class PcmSound extends Audio implements IAudio { public function __construct() { } public function __destruct() { } } final class CollectionHelper { private function __construct() {} public static function ArraySubtract($_Orkf78ntgwlf2siob57if, $_ifntwm8ei0uul3m1) { $_oewguplzn4bj13d346d0l8c9kv = array(); if (!is_array($_Orkf78ntgwlf2siob57if) || !is_array($_ifntwm8ei0uul3m1)) { throw new Exception("\x54\x68\x69\x73\x20\146\165\x6e\x63\x74\x69\x6f\x6e\40\157\x6e\x6c\171\x20\167\x6f\162\x6b\163\40\157\x6e\40\x61\162\x72\x61\171\163\41\x20".$_Orkf78ntgwlf2siob57if."\x7c".$_ifntwm8ei0uul3m1); } foreach ($_Orkf78ntgwlf2siob57if as $_li7zsxoone3pqxntqf4rlnfku5 => $_1b2tv1mtfr4jqyee) { if (!in_array($_1b2tv1mtfr4jqyee, $_ifntwm8ei0uul3m1)) { $_oewguplzn4bj13d346d0l8c9kv[] = $_1b2tv1mtfr4jqyee; } } return $_oewguplzn4bj13d346d0l8c9kv; } public static function StringArraySearch($_Og1ranm8805zvc6x, $_Ic4a3b4rc5c4iml0npqvy87i6f) { foreach($_Ic4a3b4rc5c4iml0npqvy87i6f as $_l26gj1m0g3n5hsaq => $_19pd7js5vr7hqrsxg6owzeb3kn) { if (StringHelper::HasValue($_19pd7js5vr7hqrsxg6owzeb3kn)) { if (0 === strcasecmp($_Og1ranm8805zvc6x, $_19pd7js5vr7hqrsxg6owzeb3kn)) return $_l26gj1m0g3n5hsaq; } else if (is_array($_19pd7js5vr7hqrsxg6owzeb3kn)) { foreach ($_19pd7js5vr7hqrsxg6owzeb3kn as $_o2jtbxiobpfniplhfcgpwjkkpv => $_1bmtg960n3w6hm6264qvn) { if (0 === strcasecmp($_Og1ranm8805zvc6x, $_1bmtg960n3w6hm6264qvn)) return $_l26gj1m0g3n5hsaq; } } } return false; } } final class CryptoHelper { private function __construct() {} public static function GenerateGuid() { return strtolower(md5(uniqid(mt_rand(), true))); } } final class SHA1 { private function __construct() {} public static function Hash($_ojefhzmkqlquezxv15xe1hwmsl) { return hash("\163\x68\141\61", $_ojefhzmkqlquezxv15xe1hwmsl, true); } public static function HashBase64($_l2uuhpj3ztnt2z50lee7mut4ib) { return base64_encode(self::Hash($_l2uuhpj3ztnt2z50lee7mut4ib)); } } final class SHA256 { private function __construct() {} public static function Hash($_iecowpbd9bfwjgkr) { return hash("\163\150\x61\62\65\x36", $_iecowpbd9bfwjgkr, true); } public static function HashBase64($_la82c9mkxm1gt8mhtaa7hyy0sc) { return base64_encode(self::Hash($_la82c9mkxm1gt8mhtaa7hyy0sc)); } } interface IGraphics { public function GetImage($_il7di6uf78mp686s64vgh); public function GetWidth(); public function GetHeight(); public function GetSurface(); public function Fill(Color $_it12wuptizd6h2ux); } class GDGraphics implements IGraphics { public function __construct($_o947rpa20a3ycdpy, $_i17o1h5z9xbb1jm2) { $this->_1atdo8p3jrpxx9xfxi54h = imagecreatetruecolor($_o947rpa20a3ycdpy, $_i17o1h5z9xbb1jm2); if (function_exists("\x69\155\x61\x67\x65\141\x6e\x74\x69\x61\x6c\x69\x61\163")) { imageantialias($this->_1atdo8p3jrpxx9xfxi54h, true); } $this->_oorwxhd6hvsp2awk2lp18hrjxq = imagesx($this->_1atdo8p3jrpxx9xfxi54h); $this->_lzlu4hh3gt0utoo3 = imagesy($this->_1atdo8p3jrpxx9xfxi54h); $this->_osur17327gql8mayh5xzrnn64b = Rectangle::FromPointAndSize( Point::At(0, 0), $this->GetWidth(), $this->GetHeight() ); } public function __destruct() { imagedestroy($this->_1atdo8p3jrpxx9xfxi54h); } private $_1atdo8p3jrpxx9xfxi54h; public function GetGDImage() { return $this->_1atdo8p3jrpxx9xfxi54h; } private $_oorwxhd6hvsp2awk2lp18hrjxq; public function GetWidth() { return (int) $this->_oorwxhd6hvsp2awk2lp18hrjxq; } private $_lzlu4hh3gt0utoo3; public function GetHeight() { return (int) $this->_lzlu4hh3gt0utoo3; } public function GetSurface() { return ($this->_oorwxhd6hvsp2awk2lp18hrjxq * $this->_lzlu4hh3gt0utoo3); } private $_osur17327gql8mayh5xzrnn64b; public function GetBounds() { return $this->_osur17327gql8mayh5xzrnn64b; } public function GetScalingFactor() { return log($this->GetSurface(), 2.0); } public function CloneContent() { ob_start(); imagegd2($this->_1atdo8p3jrpxx9xfxi54h); return imagecreatefromstring(ob_get_clean()); } public function GetRawContent() { ob_start(); imagewbmp($this->_1atdo8p3jrpxx9xfxi54h); return ob_get_clean(); } public function GetImage($_iw36jwh5wfhrycjkzt17l) { ob_start(); switch ($_iw36jwh5wfhrycjkzt17l) { case 1 : imagejpeg($this->_1atdo8p3jrpxx9xfxi54h); break; case 2 : imagegif($this->_1atdo8p3jrpxx9xfxi54h); break; case 3 : imagepng($this->_1atdo8p3jrpxx9xfxi54h); break; default: throw new Exception("\x55\x6e\153\x6e\157\167\x20\x69\x6d\141\147\145\40\x66\157\x72\x6d\141\164\72\x20{$_iw36jwh5wfhrycjkzt17l}\x2e"); break; } $_O2ryj9qzp7hlqcups2zj8fd92j = ob_get_contents(); ob_end_clean(); return $_O2ryj9qzp7hlqcups2zj8fd92j; } public function Fill(Color $_oovi74pzfhpnxa8hf3bdrlc1nd){ $_0lkaleyy5sanpddvxu678xk1fj = imagecolorallocate($this->_1atdo8p3jrpxx9xfxi54h, $_oovi74pzfhpnxa8hf3bdrlc1nd->get_R(), $_oovi74pzfhpnxa8hf3bdrlc1nd->get_G(), $_oovi74pzfhpnxa8hf3bdrlc1nd->get_B()); imagefilledrectangle($this->_1atdo8p3jrpxx9xfxi54h, 0, 0, $this->_oorwxhd6hvsp2awk2lp18hrjxq, $this->_lzlu4hh3gt0utoo3, $_0lkaleyy5sanpddvxu678xk1fj); } } final class ImageFormat extends Enum { private function __construct() {} public static $Names; const Jpeg = 1; const Gif = 2; const Png = 3; public static function GetName($_ig5i40rile3bywgh3r76h) { if (!is_int($_ig5i40rile3bywgh3r76h)) { throw new Exception("\x55\x6e\x6b\x6e\157\x77\156\40\145\156\165\155\x65\x72\141\164\x65\144\x20\x76\141\x6c\165\145\x3a\40".$_ig5i40rile3bywgh3r76h); } if (array_key_exists($_ig5i40rile3bywgh3r76h, ImageFormat::$Names)) { return ImageFormat::$Names[$_ig5i40rile3bywgh3r76h]; } else { throw new Exception("\125\156\x6b\x6e\157\x77\x6e\40\x65\156\165\155\145\162\x61\x74\145\x64\40\166\x61\x6c\x75\145\x3a\x20".$_ig5i40rile3bywgh3r76h); } } public static function GetValue($_0n4lvsf2ovsvmf4kbyukby25xx) { if (!StringHelper::HasValue($_0n4lvsf2ovsvmf4kbyukby25xx)) { throw new Exception("\x55\156\x6b\x6e\x6f\167\x6e\x20\145\x6e\x75\x6d\x65\162\x61\x74\x65\x64\x20\x6e\141\155\x65\72\x20".$_0n4lvsf2ovsvmf4kbyukby25xx); } $_ly424z6snpze4vzm = CollectionHelper::StringArraySearch($_0n4lvsf2ovsvmf4kbyukby25xx, ImageFormat::$Names); if (false !== $_ly424z6snpze4vzm) { return $_ly424z6snpze4vzm; } else { throw new Exception("\x55\x6e\153\156\x6f\167\156\40\x65\x6e\165\x6d\x65\x72\141\164\x65\144\40\156\141\155\x65\72\x20".$_0n4lvsf2ovsvmf4kbyukby25xx); } } public static function TryGetName($_i4cyw9irgrje3foti010pkz4g2) { if (!is_int($_i4cyw9irgrje3foti010pkz4g2)) { return; } if (array_key_exists($_i4cyw9irgrje3foti010pkz4g2, ImageFormat::$Names)) { return ImageFormat::$Names[$_i4cyw9irgrje3foti010pkz4g2]; } else { return; } } public static function TryGetValue($_Oayuq3g3rv0k92pejuowg5ghdu) { if (!StringHelper::HasValue($_Oayuq3g3rv0k92pejuowg5ghdu)) { return; } $_l9zjkjjsb2catzshnwz1jve3m1 = CollectionHelper::StringArraySearch($_Oayuq3g3rv0k92pejuowg5ghdu, ImageFormat::$Names); if (false !== $_l9zjkjjsb2catzshnwz1jve3m1) { return $_l9zjkjjsb2catzshnwz1jve3m1; } else { return; } } } ImageFormat::$Names = array( ImageFormat::Jpeg => array("\112\x70\x65\147", "\x4a\160\x67"), ImageFormat::Gif => array("\107\151\x66"), ImageFormat::Png => array("\120\156\x67") ); final class HtmlColor extends Enum { private function __construct() {} public static $Names; const AliceBlue = "\43\106\x30\106\70\106\x46"; const AntiqueWhite = "\43\x46\101\x45\102\104\x37"; const Aqua = "\43\60\60\106\x46\106\106"; const Aquamarine = "\x23\67\x46\x46\x46\104\x34"; const Azure = "\43\106\x30\x46\106\106\x46"; const Beige = "\x23\106\65\x46\65\x44\103"; const Bisque = "\43\x46\x46\105\64\103\64"; const Black = "\43\60\x30\60\60\x30\60"; const BlanchedAlmond = "\x23\x46\106\105\102\x43\104"; const Blue = "\43\x30\x30\60\60\106\x46"; const BlueViolet = "\x23\x38\x41\62\102\105\x32"; const Brown = "\43\x41\x35\x32\x41\62\101"; const BurlyWood = "\43\104\105\102\x38\x38\x37"; const CadetBlue = "\43\65\x46\x39\x45\x41\60"; const Chartreuse = "\43\x37\x46\x46\106\60\x30"; const Chocolate = "\x23\x44\62\x36\71\61\x45"; const Coral = "\43\x46\x46\x37\x46\x35\x30"; const CornflowerBlue = "\x23\x36\64\71\65\105\x44"; const Cornsilk = "\43\106\x46\106\x38\x44\x43"; const Crimson = "\43\x44\103\x31\64\63\x43"; const Cyan = "\x23\x30\60\106\106\x46\x46"; const DarkBlue = "\x23\60\x30\60\60\70\102"; const DarkCyan = "\43\x30\60\70\x42\x38\x42"; const DarkGoldenRod = "\x23\102\70\70\66\x30\102"; const DarkGray = "\x23\101\71\x41\71\101\71"; const DarkGrey = "\43\x41\x39\x41\x39\101\71"; const DarkGreen = "\x23\x30\60\x36\64\60\60"; const DarkKhaki = "\43\102\x44\x42\x37\66\x42"; const DarkMagenta = "\43\x38\x42\60\60\x38\102"; const DarkOliveGreen = "\x23\65\x35\66\102\62\x46"; const Darkorange = "\x23\106\x46\70\x43\x30\x30"; const DarkOrchid = "\43\71\71\x33\62\x43\x43"; const DarkRed = "\43\70\x42\x30\60\x30\60"; const DarkSalmon = "\x23\105\x39\71\x36\67\x41"; const DarkSeaGreen = "\x23\x38\x46\102\x43\70\x46"; const DarkSlateBlue = "\43\x34\x38\63\104\x38\102"; const DarkSlateGray = "\43\x32\x46\64\106\x34\106"; const DarkSlateGrey = "\43\x32\x46\x34\106\64\106"; const DarkTurquoise = "\43\60\x30\103\105\104\61"; const DarkViolet = "\x23\x39\x34\60\60\x44\63"; const DeepPink = "\43\x46\106\61\x34\x39\x33"; const DeepSkyBlue = "\43\x30\60\102\x46\106\106"; const DimGray = "\x23\66\x39\x36\x39\x36\71"; const DimGrey = "\x23\x36\71\66\x39\x36\x39"; const DodgerBlue = "\x23\61\105\71\60\106\x46"; const FireBrick = "\43\102\62\x32\x32\62\62"; const FloralWhite = "\x23\x46\x46\106\101\x46\x30"; const ForestGreen = "\x23\62\62\70\102\x32\x32"; const Fuchsia = "\43\106\106\60\x30\x46\x46"; const Gainsboro = "\x23\104\103\x44\103\104\103"; const GhostWhite = "\x23\106\x38\x46\70\x46\106"; const Gold = "\43\106\x46\x44\x37\60\x30"; const GoldenRod = "\x23\x44\101\101\x35\x32\x30"; const Gray = "\43\70\x30\70\x30\70\60"; const Grey = "\43\70\60\70\60\x38\60"; const Green = "\x23\60\60\70\x30\x30\60"; const GreenYellow = "\x23\x41\104\106\106\x32\x46"; const HoneyDew = "\43\x46\x30\106\106\x46\60"; const HotPink = "\43\106\x46\66\x39\102\64"; const IndianRed = "\43\x43\104\65\103\x35\x43"; const Indigo = "\43\64\102\60\60\x38\x32"; const Ivory = "\43\x46\106\x46\106\106\60"; const Khaki = "\x23\x46\x30\105\66\x38\103"; const Lavender = "\x23\105\66\x45\66\x46\x41"; const LavenderBlush = "\43\106\x46\x46\x30\x46\x35"; const LawnGreen = "\x23\x37\103\x46\x43\x30\60"; const LemonChiffon = "\43\x46\106\x46\x41\x43\104"; const LightBlue = "\43\101\x44\x44\x38\x45\66"; const LightCoral = "\43\106\x30\70\x30\70\x30"; const LightCyan = "\x23\x45\x30\106\x46\106\106"; const LightGoldenRodYellow = "\43\x46\x41\x46\x41\104\x32"; const LightGray = "\43\104\63\104\63\x44\63"; const LightGrey = "\x23\x44\63\104\63\x44\63"; const LightGreen = "\43\71\60\105\105\71\60"; const LightPink = "\43\x46\106\102\66\x43\x31"; const LightSalmon = "\x23\106\x46\x41\x30\x37\x41"; const LightSeaGreen = "\x23\62\x30\102\x32\x41\x41"; const LightSkyBlue = "\x23\70\x37\103\105\x46\101"; const LightSlateGray = "\43\x37\67\70\x38\71\71"; const LightSlateGrey = "\x23\x37\67\70\x38\71\x39"; const LightSteelBlue = "\x23\x42\60\x43\x34\104\x45"; const LightYellow = "\43\106\106\106\106\x45\x30"; const Lime = "\43\60\60\106\x46\x30\60"; const LimeGreen = "\x23\x33\62\x43\104\63\x32"; const Linen = "\43\106\x41\106\60\x45\66"; const Magenta = "\x23\x46\106\60\60\106\106"; const Maroon = "\x23\x38\60\x30\60\x30\60"; const MediumAquaMarine = "\x23\66\66\x43\x44\101\101"; const MediumBlue = "\43\60\60\60\60\x43\x44"; const MediumOrchid = "\x23\102\101\x35\x35\104\x33"; const MediumPurple = "\x23\x39\x33\67\60\x44\x38"; const MediumSeaGreen = "\x23\63\103\102\63\67\61"; const MediumSlateBlue = "\x23\x37\102\66\70\x45\105"; const MediumSpringGreen = "\x23\60\x30\106\x41\x39\x41"; const MediumTurquoise = "\x23\64\x38\104\x31\103\103"; const MediumVioletRed = "\43\103\67\x31\x35\70\x35"; const MidnightBlue = "\x23\61\71\x31\x39\x37\x30"; const MintCream = "\x23\x46\65\106\x46\x46\101"; const MistyRose = "\x23\106\106\x45\x34\x45\61"; const Moccasin = "\x23\x46\106\x45\x34\102\x35"; const NavajoWhite = "\43\106\106\x44\105\x41\x44"; const Navy = "\x23\x30\60\60\x30\x38\60"; const OldLace = "\43\x46\x44\x46\65\x45\66"; const Olive = "\x23\x38\60\70\x30\x30\60"; const OliveDrab = "\43\x36\x42\70\x45\62\x33"; const Orange = "\43\106\106\101\x35\60\60"; const OrangeRed = "\43\106\x46\x34\65\x30\x30"; const Orchid = "\43\x44\101\67\x30\x44\x36"; const PaleGoldenRod = "\x23\105\105\x45\70\x41\x41"; const PaleGreen = "\43\71\x38\106\102\71\70"; const PaleTurquoise = "\43\101\106\105\x45\x45\x45"; const PaleVioletRed = "\43\104\70\67\60\71\x33"; const PapayaWhip = "\43\106\x46\105\106\x44\x35"; const PeachPuff = "\43\106\106\x44\101\x42\x39"; const Peru = "\x23\103\x44\x38\x35\x33\x46"; const Pink = "\43\106\x46\x43\x30\x43\x42"; const Plum = "\43\104\104\101\x30\104\x44"; const PowderBlue = "\x23\x42\x30\x45\60\105\66"; const Purple = "\x23\x38\60\60\x30\x38\x30"; const Red = "\x23\x46\x46\x30\60\x30\60"; const RosyBrown = "\43\x42\103\70\x46\x38\x46"; const RoyalBlue = "\43\64\61\x36\x39\105\x31"; const SaddleBrown = "\43\70\102\x34\x35\61\x33"; const Salmon = "\x23\x46\101\x38\x30\x37\62"; const SandyBrown = "\x23\106\x34\101\64\x36\60"; const SeaGreen = "\x23\62\105\70\x42\65\x37"; const SeaShell = "\43\106\106\x46\65\x45\105"; const Sienna = "\43\x41\60\65\x32\x32\104"; const Silver = "\x23\103\x30\103\x30\x43\60"; const SkyBlue = "\43\70\67\x43\105\x45\x42"; const SlateBlue = "\43\x36\x41\x35\x41\x43\x44"; const SlateGray = "\x23\67\x30\x38\x30\71\60"; const SlateGrey = "\x23\x37\60\70\x30\71\x30"; const Snow = "\x23\x46\x46\x46\x41\106\101"; const SpringGreen = "\x23\60\x30\106\x46\x37\x46"; const SteelBlue = "\43\64\x36\x38\62\x42\x34"; const Tan = "\x23\104\62\x42\64\x38\x43"; const Teal = "\x23\x30\60\70\x30\x38\60"; const Thistle = "\43\104\x38\x42\x46\104\x38"; const Tomato = "\x23\106\106\x36\63\64\67"; const Turquoise = "\x23\x34\x30\x45\x30\104\x30"; const Violet = "\43\x45\105\70\62\x45\x45"; const Wheat = "\x23\106\x35\x44\x45\102\63"; const White = "\x23\x46\106\x46\x46\x46\x46"; const WhiteSmoke = "\x23\x46\x35\106\x35\x46\65"; const Yellow = "\x23\x46\106\106\106\x30\60"; const YellowGreen = "\43\x39\x41\x43\104\x33\x32"; public static function GetName($_Io1a9za1l5v19cfr) { if (!is_int($_Io1a9za1l5v19cfr)) { throw new Exception("\x55\156\153\156\157\167\x6e\x20\145\x6e\165\155\145\162\141\x74\x65\x64\40\x76\x61\154\165\145\x3a\40".$_Io1a9za1l5v19cfr); } if (array_key_exists($_Io1a9za1l5v19cfr, HtmlColor::$Names)) { return HtmlColor::$Names[$_Io1a9za1l5v19cfr]; } else { throw new Exception("\x55\156\153\x6e\157\167\156\40\145\x6e\x75\155\x65\162\x61\164\145\x64\x20\x76\x61\154\165\145\72\x20".$_Io1a9za1l5v19cfr); } } public static function GetValue($_O3z0004cqxc8z77qc20wf95b5j) { if (!StringHelper::HasValue($_O3z0004cqxc8z77qc20wf95b5j)) { throw new Exception("\125\x6e\153\156\157\167\156\40\145\x6e\165\155\145\162\141\x74\145\144\x20\x6e\x61\x6d\145\x3a\x20".$_O3z0004cqxc8z77qc20wf95b5j); } $_oepv032zubrcfno7acidx1b75o = CollectionHelper::StringArraySearch($_O3z0004cqxc8z77qc20wf95b5j, HtmlColor::$Names); if (false !== $_oepv032zubrcfno7acidx1b75o) { return $_oepv032zubrcfno7acidx1b75o; } else { throw new Exception("\125\156\153\156\157\167\156\x20\145\x6e\x75\x6d\145\162\x61\x74\145\x64\x20\156\141\155\x65\x3a\40".$_O3z0004cqxc8z77qc20wf95b5j); } } public static function TryGetName($_0a2sh8q5xkei146g259mfssd9d) { if (!is_int($_0a2sh8q5xkei146g259mfssd9d)) { return; } if (array_key_exists($_0a2sh8q5xkei146g259mfssd9d, HtmlColor::$Names)) { return HtmlColor::$Names[$_0a2sh8q5xkei146g259mfssd9d]; } else { return; } } public static function TryGetValue($_O5ycbo65hn2i6r3lj6lfnwxboo) { if (!StringHelper::HasValue($_O5ycbo65hn2i6r3lj6lfnwxboo)) { return; } $_0el26ytb3iil91ttducv9 = CollectionHelper::StringArraySearch($_O5ycbo65hn2i6r3lj6lfnwxboo, HtmlColor::$Names); if (false !== $_0el26ytb3iil91ttducv9) { return $_0el26ytb3iil91ttducv9; } else { return; } } } HtmlColor::$Names = array( HtmlColor::AliceBlue => "\101\x6c\151\143\x65\x42\x6c\x75\x65", HtmlColor::AntiqueWhite => "\x41\x6e\x74\x69\x71\x75\x65\x57\x68\x69\164\x65", HtmlColor::Aqua => "\x41\x71\x75\141", HtmlColor::Aquamarine => "\101\161\165\x61\155\141\x72\151\x6e\x65", HtmlColor::Azure => "\101\x7a\x75\x72\145", HtmlColor::Beige => "\x42\145\151\147\x65", HtmlColor::Bisque => "\x42\x69\163\161\x75\x65", HtmlColor::Black => "\102\154\141\x63\153", HtmlColor::BlanchedAlmond => "\102\x6c\141\x6e\143\x68\145\144\x41\x6c\x6d\x6f\x6e\144", HtmlColor::Blue => "\x42\x6c\165\145", HtmlColor::BlueViolet => "\102\154\165\145\126\151\x6f\x6c\x65\x74", HtmlColor::Brown => "\x42\162\x6f\167\x6e", HtmlColor::BurlyWood => "\x42\x75\x72\154\x79\x57\157\x6f\x64", HtmlColor::CadetBlue => "\103\x61\144\145\x74\102\154\165\x65", HtmlColor::Chartreuse => "\103\150\141\162\x74\162\145\x75\x73\x65", HtmlColor::Chocolate => "\x43\x68\157\143\x6f\x6c\x61\164\145", HtmlColor::Coral => "\103\157\x72\141\x6c", HtmlColor::CornflowerBlue => "\x43\x6f\162\156\146\x6c\x6f\167\x65\162\102\x6c\x75\145", HtmlColor::Cornsilk => "\103\157\162\x6e\163\151\154\153", HtmlColor::Crimson => "\103\x72\x69\x6d\x73\x6f\156", HtmlColor::Cyan => "\x43\x79\x61\x6e", HtmlColor::DarkBlue => "\104\141\162\x6b\102\154\165\145", HtmlColor::DarkCyan => "\104\x61\162\153\x43\171\141\156", HtmlColor::DarkGoldenRod => "\x44\x61\162\153\107\x6f\x6c\144\145\156\x52\157\x64", HtmlColor::DarkGray => "\104\141\x72\x6b\107\x72\141\x79", HtmlColor::DarkGrey => "\x44\x61\x72\153\107\162\145\x79", HtmlColor::DarkGreen => "\x44\141\162\153\x47\x72\x65\145\x6e", HtmlColor::DarkKhaki => "\104\141\162\153\x4b\150\141\153\x69", HtmlColor::DarkMagenta => "\104\141\162\153\x4d\141\147\145\x6e\164\x61", HtmlColor::DarkOliveGreen => "\x44\x61\x72\153\x4f\154\151\x76\145\x47\162\145\x65\156", HtmlColor::Darkorange => "\104\141\x72\153\157\x72\x61\x6e\147\145", HtmlColor::DarkOrchid => "\x44\x61\x72\153\117\162\143\x68\151\144", HtmlColor::DarkRed => "\104\141\x72\x6b\122\145\x64", HtmlColor::DarkSalmon => "\104\141\162\153\x53\141\154\x6d\157\x6e", HtmlColor::DarkSeaGreen => "\104\141\162\x6b\123\x65\141\107\x72\x65\145\x6e", HtmlColor::DarkSlateBlue => "\x44\x61\x72\x6b\123\x6c\141\x74\x65\102\154\165\x65", HtmlColor::DarkSlateGray => "\x44\141\162\153\123\x6c\141\164\x65\107\x72\x61\x79", HtmlColor::DarkSlateGrey => "\x44\141\x72\153\x53\x6c\141\164\x65\107\x72\145\171", HtmlColor::DarkTurquoise => "\104\141\162\153\x54\x75\x72\161\x75\157\151\163\145", HtmlColor::DarkViolet => "\x44\x61\x72\153\x56\151\x6f\154\x65\164", HtmlColor::DeepPink => "\x44\x65\x65\160\120\x69\x6e\153", HtmlColor::DeepSkyBlue => "\104\x65\x65\x70\x53\153\x79\x42\154\165\x65", HtmlColor::DimGray => "\x44\151\x6d\x47\162\x61\x79", HtmlColor::DimGrey => "\x44\151\x6d\107\x72\x65\x79", HtmlColor::DodgerBlue => "\104\x6f\144\x67\x65\162\x42\154\x75\145", HtmlColor::FireBrick => "\106\151\x72\145\102\162\x69\143\x6b", HtmlColor::FloralWhite => "\106\x6c\x6f\162\x61\154\x57\150\151\x74\145", HtmlColor::ForestGreen => "\x46\x6f\x72\145\x73\164\107\162\x65\145\x6e", HtmlColor::Fuchsia => "\x46\165\x63\150\x73\x69\x61", HtmlColor::Gainsboro => "\x47\141\151\x6e\x73\142\x6f\162\x6f", HtmlColor::GhostWhite => "\x47\150\157\163\x74\127\x68\x69\164\x65", HtmlColor::Gold => "\107\x6f\154\144", HtmlColor::GoldenRod => "\107\x6f\x6c\x64\x65\156\x52\x6f\x64", HtmlColor::Gray => "\107\162\141\x79", HtmlColor::Grey => "\x47\x72\x65\171", HtmlColor::Green => "\107\x72\x65\145\156", HtmlColor::GreenYellow => "\x47\x72\145\145\x6e\x59\x65\x6c\x6c\x6f\167", HtmlColor::HoneyDew => "\x48\x6f\x6e\145\171\104\x65\x77", HtmlColor::HotPink => "\110\x6f\x74\x50\151\x6e\153", HtmlColor::IndianRed => "\111\156\x64\151\x61\156\x52\x65\x64", HtmlColor::Indigo => "\111\x6e\x64\x69\147\157", HtmlColor::Ivory => "\x49\166\157\162\171", HtmlColor::Khaki => "\x4b\x68\x61\153\151", HtmlColor::Lavender => "\x4c\141\x76\145\x6e\x64\x65\x72", HtmlColor::LavenderBlush => "\x4c\x61\x76\x65\156\x64\145\x72\x42\x6c\165\x73\150", HtmlColor::LawnGreen => "\114\141\x77\156\107\x72\145\145\156", HtmlColor::LemonChiffon => "\x4c\145\155\x6f\x6e\x43\150\x69\x66\146\157\156", HtmlColor::LightBlue => "\114\x69\x67\150\164\102\x6c\x75\x65", HtmlColor::LightCoral => "\114\x69\147\150\x74\x43\x6f\x72\x61\154", HtmlColor::LightCyan => "\x4c\151\x67\150\x74\103\171\141\156", HtmlColor::LightGoldenRodYellow => "\x4c\151\x67\x68\164\107\157\x6c\144\145\x6e\x52\157\144\x59\x65\x6c\154\157\167", HtmlColor::LightGray => "\x4c\x69\147\x68\x74\107\x72\x61\x79", HtmlColor::LightGrey => "\x4c\x69\147\150\164\107\x72\x65\171", HtmlColor::LightGreen => "\x4c\151\147\x68\x74\x47\162\x65\145\156", HtmlColor::LightPink => "\x4c\151\x67\150\x74\x50\151\156\153", HtmlColor::LightSalmon => "\114\x69\147\150\164\123\141\x6c\155\157\x6e", HtmlColor::LightSeaGreen => "\114\x69\x67\x68\164\x53\145\141\x47\162\145\145\156", HtmlColor::LightSkyBlue => "\x4c\151\147\150\x74\x53\x6b\171\102\154\x75\145", HtmlColor::LightSlateGray => "\x4c\151\147\x68\x74\x53\154\141\164\145\x47\x72\141\x79", HtmlColor::LightSlateGrey => "\114\151\147\150\x74\123\154\141\164\145\107\x72\145\x79", HtmlColor::LightSteelBlue => "\x4c\x69\x67\x68\x74\123\164\x65\145\154\x42\x6c\x75\145", HtmlColor::LightYellow => "\114\x69\147\x68\164\x59\x65\x6c\154\x6f\x77", HtmlColor::Lime => "\x4c\151\155\x65", HtmlColor::LimeGreen => "\114\x69\155\x65\107\x72\x65\145\x6e", HtmlColor::Linen => "\114\151\x6e\145\x6e", HtmlColor::Magenta => "\115\x61\x67\x65\x6e\164\x61", HtmlColor::Maroon => "\x4d\x61\x72\157\157\x6e", HtmlColor::MediumAquaMarine => "\115\145\144\x69\165\x6d\x41\161\x75\141\115\141\x72\151\x6e\145", HtmlColor::MediumBlue => "\x4d\x65\144\x69\165\x6d\x42\x6c\x75\145", HtmlColor::MediumOrchid => "\x4d\x65\144\151\x75\155\117\162\x63\x68\x69\144", HtmlColor::MediumPurple => "\x4d\x65\x64\151\x75\155\120\165\162\160\154\145", HtmlColor::MediumSeaGreen => "\115\x65\x64\151\165\x6d\123\x65\x61\107\x72\x65\x65\156", HtmlColor::MediumSlateBlue => "\115\x65\144\151\165\x6d\x53\x6c\141\164\145\x42\x6c\x75\x65", HtmlColor::MediumSpringGreen => "\x4d\x65\144\151\x75\x6d\123\160\x72\151\x6e\x67\x47\x72\x65\x65\x6e", HtmlColor::MediumTurquoise => "\x4d\145\144\151\x75\x6d\124\x75\162\x71\x75\157\x69\x73\145", HtmlColor::MediumVioletRed => "\115\x65\x64\x69\x75\155\126\151\x6f\x6c\x65\x74\122\x65\144", HtmlColor::MidnightBlue => "\x4d\x69\x64\156\x69\x67\x68\164\x42\154\x75\x65", HtmlColor::MintCream => "\x4d\151\156\x74\x43\x72\x65\x61\x6d", HtmlColor::MistyRose => "\115\151\x73\164\x79\122\157\163\x65", HtmlColor::Moccasin => "\115\x6f\x63\143\x61\163\151\156", HtmlColor::NavajoWhite => "\116\141\166\x61\x6a\157\127\150\151\164\145", HtmlColor::Navy => "\116\141\x76\171", HtmlColor::OldLace => "\117\154\x64\114\141\x63\x65", HtmlColor::Olive => "\117\x6c\151\x76\145", HtmlColor::OliveDrab => "\117\x6c\151\166\145\104\x72\x61\142", HtmlColor::Orange => "\117\x72\141\x6e\x67\x65", HtmlColor::OrangeRed => "\x4f\162\141\x6e\x67\x65\x52\x65\x64", HtmlColor::Orchid => "\117\162\143\x68\151\144", HtmlColor::PaleGoldenRod => "\120\x61\154\145\107\x6f\154\144\145\x6e\122\x6f\x64", HtmlColor::PaleGreen => "\120\x61\154\x65\x47\x72\145\x65\156", HtmlColor::PaleTurquoise => "\120\x61\154\145\124\x75\x72\161\x75\x6f\x69\x73\145", HtmlColor::PaleVioletRed => "\120\141\154\x65\x56\151\157\x6c\145\x74\122\x65\x64", HtmlColor::PapayaWhip => "\x50\x61\160\141\x79\x61\127\150\x69\160", HtmlColor::PeachPuff => "\120\145\141\143\150\x50\x75\x66\146", HtmlColor::Peru => "\x50\x65\162\165", HtmlColor::Pink => "\x50\x69\x6e\153", HtmlColor::Plum => "\x50\x6c\165\x6d", HtmlColor::PowderBlue => "\120\157\167\x64\145\x72\102\x6c\x75\x65", HtmlColor::Purple => "\120\165\x72\x70\x6c\145", HtmlColor::Red => "\x52\145\x64", HtmlColor::RosyBrown => "\x52\157\x73\171\102\x72\x6f\167\x6e", HtmlColor::RoyalBlue => "\122\x6f\x79\x61\154\x42\154\x75\145", HtmlColor::SaddleBrown => "\x53\x61\144\144\x6c\x65\102\162\157\167\x6e", HtmlColor::Salmon => "\x53\141\x6c\155\157\156", HtmlColor::SandyBrown => "\x53\141\x6e\144\x79\x42\x72\157\x77\x6e", HtmlColor::SeaGreen => "\x53\x65\x61\107\162\145\145\156", HtmlColor::SeaShell => "\123\x65\x61\123\x68\x65\154\x6c", HtmlColor::Sienna => "\x53\x69\x65\x6e\156\141", HtmlColor::Silver => "\123\x69\x6c\x76\x65\162", HtmlColor::SkyBlue => "\123\153\x79\x42\154\165\145", HtmlColor::SlateBlue => "\123\154\x61\x74\145\x42\154\165\145", HtmlColor::SlateGray => "\x53\154\141\164\145\x47\x72\141\171", HtmlColor::SlateGrey => "\123\154\141\164\x65\x47\162\145\171", HtmlColor::Snow => "\123\x6e\x6f\167", HtmlColor::SpringGreen => "\123\160\162\151\x6e\x67\x47\x72\145\x65\x6e", HtmlColor::SteelBlue => "\123\164\145\x65\154\x42\x6c\x75\145", HtmlColor::Tan => "\x54\x61\x6e", HtmlColor::Teal => "\x54\x65\141\x6c", HtmlColor::Thistle => "\124\150\151\163\x74\x6c\145", HtmlColor::Tomato => "\x54\x6f\155\141\x74\157", HtmlColor::Turquoise => "\x54\165\x72\161\x75\x6f\151\163\145", HtmlColor::Violet => "\126\x69\x6f\154\x65\164", HtmlColor::Wheat => "\127\x68\145\x61\x74", HtmlColor::White => "\127\150\151\164\145", HtmlColor::WhiteSmoke => "\127\x68\x69\164\145\x53\155\x6f\x6b\x65", HtmlColor::Yellow => "\x59\145\x6c\x6c\157\167", HtmlColor::YellowGreen => "\131\145\x6c\154\x6f\167\x47\162\x65\x65\156", ); class Color { public function __construct($_0ijzr5kuglm4spax, $_i6do12jlsa1nd7gq6l4emny1in, $_1z5byxbq3kdooxr0) { $this->_0norvxlg7mllylfkwnx5qkprgm = new RandomRange($_0ijzr5kuglm4spax); $this->_oeekypi7y92bj09bzai9y = new RandomRange($_i6do12jlsa1nd7gq6l4emny1in); $this->_iz2e0k8jqtljkwfn2fnyk = new RandomRange($_1z5byxbq3kdooxr0); } const DefaultColorValue = 0; public static function IsValidColorValue($_Iq73bq7jdjbqqbw0sqm9a) { return (0 <= $_Iq73bq7jdjbqqbw0sqm9a || 255 >= $_Iq73bq7jdjbqqbw0sqm9a); } public static function IsValidColorRange(RandomRange $_0askh0n9gea75n3t) { return (0 <= $_0askh0n9gea75n3t->Min || 255 >= $_0askh0n9gea75n3t->Max); } private $_0norvxlg7mllylfkwnx5qkprgm; public function get_RedRange() { return $this->_0norvxlg7mllylfkwnx5qkprgm; } public function set_RedRange(RandomRange $_Ixtze6koq73kchpyp0le2o4m0f) { if (!self::IsValidColorRange($_Ixtze6koq73kchpyp0le2o4m0f)) { throw new Exception("\x43\157\x6c\157\162\40\x76\141\x6c\x75\145\40\x6d\x75\163\x74\40\142\x65\x20\x62\x65\164\x77\145\x65\x6e\40\60\x20\x61\x6e\144\40\62\x35\x35\x3a\x20\x3c{$_Ixtze6koq73kchpyp0le2o4m0f->Min}\x2c\40{$_Ixtze6koq73kchpyp0le2o4m0f->Max}\x3e"); } $this->_0norvxlg7mllylfkwnx5qkprgm = $_Ixtze6koq73kchpyp0le2o4m0f; } public function get_R() { if ($this->HasValue()) { return $this->_0norvxlg7mllylfkwnx5qkprgm->Next; } return self::DefaultColorValue; } public function set_R($_iu535thgd6qehcb7nc39y) { $this->RedRange = new RandomRange($_iu535thgd6qehcb7nc39y); } private $_oeekypi7y92bj09bzai9y; public function get_GreenRange() { return $this->_oeekypi7y92bj09bzai9y; } public function set_GreenRange(RandomRange $_og94ja7lpiamkolc2si73brozb) { if (!self::IsValidColorRange($_og94ja7lpiamkolc2si73brozb)) { throw new Exception("\103\x6f\154\157\162\x20\166\x61\x6c\165\x65\x20\155\165\x73\164\40\142\x65\40\x62\x65\164\x77\145\145\x6e\x20\x30\40\141\x6e\144\40\x32\x35\65\x3a\40\x3c{$_og94ja7lpiamkolc2si73brozb->Min}\x2c\x20{$_og94ja7lpiamkolc2si73brozb->Max}\76"); } $this->_oeekypi7y92bj09bzai9y = $_og94ja7lpiamkolc2si73brozb; } public function get_G() { if ($this->HasValue()) { return $this->_oeekypi7y92bj09bzai9y->Next; } return self::DefaultColorValue; } public function set_G($_0fb20bavmwuva3xdwpxk497tuc) { $this->GreenRange = new RandomRange($_0fb20bavmwuva3xdwpxk497tuc); } private $_iz2e0k8jqtljkwfn2fnyk; public function get_BlueRange() { return $this->_iz2e0k8jqtljkwfn2fnyk; } public function set_BlueRange(RandomRange $_1386lxepz5wb4shmucc2nj6x5e) { if (!self::IsValidColorRange($_1386lxepz5wb4shmucc2nj6x5e)) { throw new Exception("\103\x6f\154\x6f\162\x20\166\x61\x6c\165\145\40\155\165\x73\164\40\x62\x65\40\x62\145\x74\167\x65\145\156\x20\x30\x20\x61\156\144\x20\x32\65\65\x3a\x20\74{$_1386lxepz5wb4shmucc2nj6x5e->Min}\x2c\x20{$_1386lxepz5wb4shmucc2nj6x5e->Max}\x3e"); } $this->_iz2e0k8jqtljkwfn2fnyk = $_1386lxepz5wb4shmucc2nj6x5e; } public function get_B() { if ($this->HasValue()) { return $this->_iz2e0k8jqtljkwfn2fnyk->Next; } return self::DefaultColorValue; } public function set_B($_lya4e7wnvrgs0e78lhbz8) { $this->BlueRange = new RandomRange($_lya4e7wnvrgs0e78lhbz8); } public function HasValue() { return (isset($this->_0norvxlg7mllylfkwnx5qkprgm) || isset($this->_oeekypi7y92bj09bzai9y) || isset($this->_iz2e0k8jqtljkwfn2fnyk)); } public function get_IsRandomized() { return ($this->_0norvxlg7mllylfkwnx5qkprgm->get_IsRandomized() || $this->_oeekypi7y92bj09bzai9y->get_IsRandomized() || $this->_iz2e0k8jqtljkwfn2fnyk->get_IsRandomized()); } public function Freeze() { $this->_iz2e0k8jqtljkwfn2fnyk->Freeze(); $this->_oeekypi7y92bj09bzai9y->Freeze(); $this->_0norvxlg7mllylfkwnx5qkprgm->Freeze(); } public function get_Frozen() { $this->Freeze(); return $this; } public static function FromHtmlColor($_Ozy1k1tr1hgofo48zc2y4gb324){ if (StringHelper::StartsWith($_Ozy1k1tr1hgofo48zc2y4gb324, "\x23")) { return self::FromHexString($_Ozy1k1tr1hgofo48zc2y4gb324); } else { return self::FromName($_Ozy1k1tr1hgofo48zc2y4gb324); } } public static function FromName($_Olyaturqsichlmtb) { $_lihh20k54ybg2l2nrgi2k216dp = HtmlColor::GetValue(StringHelper::Normalize($_Olyaturqsichlmtb)); return self::FromHexString($_lihh20k54ybg2l2nrgi2k216dp); } public static function FromHexString($_1mcp5k946dd7j4j0) { $_0rvbt1awipd8tmbkahsw1 = preg_replace("\57\133\x5e\60\55\x39\101\x2d\106\141\x2d\x66\x5d\57", '', $_1mcp5k946dd7j4j0); $_ij7piz9l7ugj9czle996i = strlen($_0rvbt1awipd8tmbkahsw1); if (3 != $_ij7piz9l7ugj9czle996i && 6 != $_ij7piz9l7ugj9czle996i) { throw new Exception("\x49\x6e\x76\x61\x6c\x69\x64\40\x68\x65\170\x20\x73\164\162\151\156\x67\x20\x6c\145\x6e\147\164\150\72\x20{$_1mcp5k946dd7j4j0}\x2e"); } if (3 == $_ij7piz9l7ugj9czle996i) { $_iuwtkj37g0qlrkgt = 1; $_O7ckp61u3j487abu4iqs6 = str_repeat(substr($_0rvbt1awipd8tmbkahsw1, 0, $_iuwtkj37g0qlrkgt), 2); $_Oq4hkl6ijekm0lkajfsrc = str_repeat(substr($_0rvbt1awipd8tmbkahsw1, $_iuwtkj37g0qlrkgt, $_iuwtkj37g0qlrkgt), 2); $_ogd04qsmbxeiewgijh9hc = str_repeat(substr($_0rvbt1awipd8tmbkahsw1, 2 * $_iuwtkj37g0qlrkgt, $_iuwtkj37g0qlrkgt), 2); } else if (6 == $_ij7piz9l7ugj9czle996i) { $_iuwtkj37g0qlrkgt = 2; $_O7ckp61u3j487abu4iqs6 = substr($_0rvbt1awipd8tmbkahsw1, 0, $_iuwtkj37g0qlrkgt); $_Oq4hkl6ijekm0lkajfsrc = substr($_0rvbt1awipd8tmbkahsw1, $_iuwtkj37g0qlrkgt, $_iuwtkj37g0qlrkgt); $_ogd04qsmbxeiewgijh9hc = substr($_0rvbt1awipd8tmbkahsw1, 2 * $_iuwtkj37g0qlrkgt, $_iuwtkj37g0qlrkgt); } $_okchysmbfeguuvfp1ro9yq0pgq = hexdec($_O7ckp61u3j487abu4iqs6); $_Oimy1wm60h3ljajfbh6lyzto2c = hexdec($_Oq4hkl6ijekm0lkajfsrc); $_0b5kki62jfyk8jvy = hexdec($_ogd04qsmbxeiewgijh9hc); return new Color($_okchysmbfeguuvfp1ro9yq0pgq, $_Oimy1wm60h3ljajfbh6lyzto2c, $_0b5kki62jfyk8jvy); } public function ToHexString() { $_Ima850bn77axyzqoinubu = dechex($this->R); $_Ima850bn77axyzqoinubu = str_pad($_Ima850bn77axyzqoinubu, 2, "\60", STR_PAD_LEFT); $_Oal12n166lh8astm = dechex($this->G); $_Oal12n166lh8astm = str_pad($_Oal12n166lh8astm, 2, "\x30", STR_PAD_LEFT); $_iy9o1pyk24fuh61l = dechex($this->B); $_iy9o1pyk24fuh61l = str_pad($_iy9o1pyk24fuh61l, 2, "\x30", STR_PAD_LEFT); return strtoupper("\43{$_Ima850bn77axyzqoinubu}{$_Oal12n166lh8astm}{$_iy9o1pyk24fuh61l}"); } public static function Between(Color $_04opz8xnc1dinkyirbsav, Color $_o3v8vcwtjt42d5gs6puzhfajfe) { $_14j0716oe0d8zc2z = new Color(0, 0, 0); $_14j0716oe0d8zc2z->RedRange = new RandomRange($_04opz8xnc1dinkyirbsav->R, $_o3v8vcwtjt42d5gs6puzhfajfe->R); $_14j0716oe0d8zc2z->GreenRange = new RandomRange($_04opz8xnc1dinkyirbsav->G, $_o3v8vcwtjt42d5gs6puzhfajfe->G); $_14j0716oe0d8zc2z->BlueRange = new RandomRange($_04opz8xnc1dinkyirbsav->B, $_o3v8vcwtjt42d5gs6puzhfajfe->B); return $_14j0716oe0d8zc2z; } public static function Rgb($_l1bryww2ri2xbqt5r92295g5b6, $_0kxp4023c3if6nb4dhtw4, $_oppczotxru3ieg0snlj3dj493c) { return new Color($_l1bryww2ri2xbqt5r92295g5b6, $_0kxp4023c3if6nb4dhtw4, $_oppczotxru3ieg0snlj3dj493c); } public static function BetweenRgb($_o3iuoiel8yszpny4lo1rx, $_lhpght1iten5u6ga, $_0iyuupasvs1ppahm) { return new Color($_o3iuoiel8yszpny4lo1rx, $_lhpght1iten5u6ga, $_0iyuupasvs1ppahm); } public function AndRgb($_o2uw9bu6ytlpnjl3eljqf75ct1, $_okgokm52fsbf62a2g4pxt, $_1ml3wdhgiwvjbl5qxz119) { return self::Between($this, new Color($_o2uw9bu6ytlpnjl3eljqf75ct1, $_okgokm52fsbf62a2g4pxt, $_1ml3wdhgiwvjbl5qxz119)); } public static function Randomized(Color $_i7mc69qlc4bxoxy110lpxj249h, $_0woypefw6maaqulz) { $_Ohe01sn8rsy8t2wv = new Color(0, 0, 0); $_0k5yxrhkhurp7knhgeg7vixz5l = $_0woypefw6maaqulz / 2; $_Ia388n3e8mh7sg4a = $_i7mc69qlc4bxoxy110lpxj249h->R - $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_Ia388n3e8mh7sg4a < 0) { $_Ia388n3e8mh7sg4a = 0; } $_ib8ivl5esqe9prjvoail7 = $_i7mc69qlc4bxoxy110lpxj249h->R + $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_ib8ivl5esqe9prjvoail7 > 255) { $_ib8ivl5esqe9prjvoail7 = 255; } $_Ohe01sn8rsy8t2wv->RedRange = new RandomRange($_Ia388n3e8mh7sg4a, $_ib8ivl5esqe9prjvoail7); $_ltr11otnxhcx1rf5 = $_i7mc69qlc4bxoxy110lpxj249h->G - $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_ltr11otnxhcx1rf5 < 0) { $_ltr11otnxhcx1rf5 = 0; } $_1t7l58jpmnw3f3a2 = $_i7mc69qlc4bxoxy110lpxj249h->G + $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_1t7l58jpmnw3f3a2 > 255) { $_1t7l58jpmnw3f3a2 = 255; } $_Ohe01sn8rsy8t2wv->GreenRange = new RandomRange($_ltr11otnxhcx1rf5, $_1t7l58jpmnw3f3a2); $_Icco1k5ptlnk6dux = $_i7mc69qlc4bxoxy110lpxj249h->B - $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_Icco1k5ptlnk6dux < 0) { $_Icco1k5ptlnk6dux = 0; } $_Isyafaswvbg6xafd = $_i7mc69qlc4bxoxy110lpxj249h->B + $_0k5yxrhkhurp7knhgeg7vixz5l; if ($_Isyafaswvbg6xafd > 255) { $_Isyafaswvbg6xafd = 255; } $_Ohe01sn8rsy8t2wv->BlueRange = new RandomRange($_Icco1k5ptlnk6dux, $_Isyafaswvbg6xafd); return $_Ohe01sn8rsy8t2wv; } public static function RandomizedR(Color $_ihdszqg4mxx84evr9yyg0, $_igiuqevcbs093hpz) { $_Ofctwla23nfn6pi0f8h8nhae8s = new Color(0, $_ihdszqg4mxx84evr9yyg0->G, $_ihdszqg4mxx84evr9yyg0->B); $_o792c65vl4m9kow2 = $_igiuqevcbs093hpz / 2; $_Oipgtoqkuedf9dl1 = $_ihdszqg4mxx84evr9yyg0->R - $_o792c65vl4m9kow2; if ($_Oipgtoqkuedf9dl1 < 0) { $_Oipgtoqkuedf9dl1 = 0; } $_197ai6b0jn0zpiehk5nxd1n4fb = $_ihdszqg4mxx84evr9yyg0->R + $_o792c65vl4m9kow2; if ($_197ai6b0jn0zpiehk5nxd1n4fb > 255) { $_197ai6b0jn0zpiehk5nxd1n4fb = 255; } $_Ofctwla23nfn6pi0f8h8nhae8s->RedRange = new RandomRange($_Oipgtoqkuedf9dl1, $_197ai6b0jn0zpiehk5nxd1n4fb); return $_Ofctwla23nfn6pi0f8h8nhae8s; } public static function RandomizedG(Color $_Oxcty7kzxf462v4u, $_08b6s7a0eljkrmzqkss5p) { $_lg53rdwgjqhzya62 = new Color($_Oxcty7kzxf462v4u->R, 0, $_Oxcty7kzxf462v4u->B); $_0hnyo8qk5rrllux0gy3kgd2ulq = $_08b6s7a0eljkrmzqkss5p / 2; $_itsfc9shw6vthdpf = $_Oxcty7kzxf462v4u->G - $_0hnyo8qk5rrllux0gy3kgd2ulq; if ($_itsfc9shw6vthdpf < 0) { $_itsfc9shw6vthdpf = 0; } $_ipf7udtsqlrqzssj = $_Oxcty7kzxf462v4u->G + $_0hnyo8qk5rrllux0gy3kgd2ulq; if ($_ipf7udtsqlrqzssj > 255) { $_ipf7udtsqlrqzssj = 255; } $_lg53rdwgjqhzya62->GreenRange = new RandomRange($_itsfc9shw6vthdpf, $_ipf7udtsqlrqzssj); return $_lg53rdwgjqhzya62; } public static function RandomizedB(Color $_ibp3mcpzk2qqwzwtq2ich, $_i3ngerkw3ptkpskd) { $_oz8tjxgnutkdzvl8stlsakbdef = new Color($_ibp3mcpzk2qqwzwtq2ich->R, $_ibp3mcpzk2qqwzwtq2ich->G, 0); $_i6tm9r7tw3i6g62ojvrg7 = $_i3ngerkw3ptkpskd / 2; $_oocnkgjrro3nq0mjzhvitg002c = $_ibp3mcpzk2qqwzwtq2ich->B - $_i6tm9r7tw3i6g62ojvrg7; if ($_oocnkgjrro3nq0mjzhvitg002c < 0) { $_oocnkgjrro3nq0mjzhvitg002c = 0; } $_1htsxdfug4vf5mhxlhwd2suxug = $_ibp3mcpzk2qqwzwtq2ich->B + $_i6tm9r7tw3i6g62ojvrg7; if ($_1htsxdfug4vf5mhxlhwd2suxug > 255) { $_1htsxdfug4vf5mhxlhwd2suxug = 255; } $_oz8tjxgnutkdzvl8stlsakbdef->BlueRange = new RandomRange($_oocnkgjrro3nq0mjzhvitg002c, $_1htsxdfug4vf5mhxlhwd2suxug); return $_oz8tjxgnutkdzvl8stlsakbdef; } public function get_Complement() { $_i48l2dnv7cb3mnb2hjxqmgmxp4 = new Color(0, 0, 0); $_i48l2dnv7cb3mnb2hjxqmgmxp4->RedRange = new RandomRange(255 - $this->RedRange->Max, 255 - $this->RedRange->Min); $_i48l2dnv7cb3mnb2hjxqmgmxp4->GreenRange = new RandomRange(255 - $this->GreenRange->Max, 255 - $this->GreenRange->Min); $_i48l2dnv7cb3mnb2hjxqmgmxp4->BlueRange = new RandomRange(255 - $this->BlueRange->Max, 255 - $this->BlueRange->Min); return $_i48l2dnv7cb3mnb2hjxqmgmxp4; } public function ColorDistanceTo(Color $_oa2hjmilkxw5vabp) { $_owo4pyvm3ctl57lcoghfleidt8 = sqrt(pow(($this->get_R() - $_oa2hjmilkxw5vabp->get_R()), 2) + pow(($this->get_G() - $_oa2hjmilkxw5vabp->get_G()), 2) + pow(($this->get_B() - $_oa2hjmilkxw5vabp->get_B()), 2)); return $_owo4pyvm3ctl57lcoghfleidt8; } public function get_MostContrastingColor() { $_Idq82finxbzd25d6b1bdo = 0; if ($this->R < 127) { $_Idq82finxbzd25d6b1bdo = 255; } $_0we0na50bky325tcw0uydul0kp = 0; if ($this->G < 127) { $_0we0na50bky325tcw0uydul0kp = 255; } $_1p8aed92r6kn95j4 = 0; if ($this->B < 127) { $_1p8aed92r6kn95j4 = 255; } return Color::Rgb($_Idq82finxbzd25d6b1bdo, $_0we0na50bky325tcw0uydul0kp, $_1p8aed92r6kn95j4); } public static function Median() { $_l33rksuwky7zxz50 = func_num_args(); $_1gdjgv4njidgpvaewuz0l8vyjv = func_get_args(); $_O3bqm7q0x1lw73o7bh5av55zbi = 0; $_0i3xaaj8juywtu1ae9e9zhdzde = 0; $_I905piv62nhljlmc = 0; $_0lk05szzdsd9xolu = 0; foreach ($_1gdjgv4njidgpvaewuz0l8vyjv as $_18qzxaiqvk9csobglsk2tukn9w) { if ($_18qzxaiqvk9csobglsk2tukn9w instanceof Color) { $_0lk05szzdsd9xolu++; $_O3bqm7q0x1lw73o7bh5av55zbi += $_18qzxaiqvk9csobglsk2tukn9w->R; $_0i3xaaj8juywtu1ae9e9zhdzde += $_18qzxaiqvk9csobglsk2tukn9w->G; $_I905piv62nhljlmc += $_18qzxaiqvk9csobglsk2tukn9w->B; } } if (0 == $_0lk05szzdsd9xolu) { throw new Exception("\x43\157\x6c\157\162\x3a\72\x4d\145\x64\151\x61\x6e\50\x29\x20\162\145\x71\165\x69\x72\x65\163\x20\141\164\40\x6c\x65\141\x73\x74\x20\61\40\160\x61\x72\141\x6d\145\x74\145\162\40\x6f\146\x20\x74\x79\x70\x65\40\x43\157\154\x6f\162\41"); } return Color::Rgb($_O3bqm7q0x1lw73o7bh5av55zbi / $_0lk05szzdsd9xolu, $_0i3xaaj8juywtu1ae9e9zhdzde / $_0lk05szzdsd9xolu, $_I905piv62nhljlmc / $_0lk05szzdsd9xolu); } public static function Darkened(Color $_Oe8wx39ax1e7v4i8xc9lx, $_oiuc84gj469bqrous2xlb) { if (0 > $_oiuc84gj469bqrous2xlb || 99 < $_oiuc84gj469bqrous2xlb) { throw new Exception("\104\141\162\153\x65\x6e\x69\156\147\40\157\x6e\x6c\x79\40\155\x61\x6b\x65\x73\x20\163\x65\x6e\163\x65\x20\167\x69\164\150\x20\144\145\163\151\162\x65\x64\40\154\165\x6d\151\x6e\x6f\x73\x69\164\x79\40\142\x65\164\167\x65\x65\156\x20\60\x20\141\x6e\144\x20\x39\71\x20\x70\145\162\x63\145\156\164\40\x69\x6e\160\165\164\72\40{$_oiuc84gj469bqrous2xlb}"); } $_1kcdl2psne99li0g = $_Oe8wx39ax1e7v4i8xc9lx->Luminosity; $_O8wnnqzk5fvwz8dft5n6qcpuzz = $_1kcdl2psne99li0g * $_oiuc84gj469bqrous2xlb / 100.00; return Color::Hsl($_Oe8wx39ax1e7v4i8xc9lx->Hue, $_Oe8wx39ax1e7v4i8xc9lx->Saturation, $_O8wnnqzk5fvwz8dft5n6qcpuzz); } public static function Lightened(Color $_1g1jy6xfog6cvh47, $_iwdqohwgcgwuc0qc) { if (100 > $_iwdqohwgcgwuc0qc) { throw new Exception("\114\151\x67\x68\164\145\156\151\156\x67\40\x6f\x6e\x6c\171\x20\x6d\x61\x6b\x65\163\40\163\145\156\x73\x65\40\x77\x69\164\150\40\x64\145\x73\x69\162\145\144\x20\x6c\165\x6d\x69\x6e\157\x73\x69\x74\x79\40\x6d\x6f\162\x65\x20\x74\x68\x61\x6e\x20\61\60\x30\x20\x70\x65\x72\143\145\x6e\x74\40\x69\156\160\x75\x74\72\40{$_iwdqohwgcgwuc0qc}"); } $_obll86zz9c640sosjy417 = $_1g1jy6xfog6cvh47->Luminosity; $_iyc11e4x43j5tpek = $_obll86zz9c640sosjy417 * $_iwdqohwgcgwuc0qc / 100.00; if (0.1 > $_iyc11e4x43j5tpek) { $_iyc11e4x43j5tpek = 0.25; } if ($_iyc11e4x43j5tpek > 1.0) { $_iyc11e4x43j5tpek = 1.0; } return Color::Hsl($_1g1jy6xfog6cvh47->Hue, $_1g1jy6xfog6cvh47->Saturation, $_iyc11e4x43j5tpek); } public static function SaturationAdjusted(Color $_leo54yv384r2wofr, $_Oxvbpys5equfx3jn7x8bd) { $_Ovof7nampsxpce5anbka8 = $_leo54yv384r2wofr->Saturation; $_0vwla5emtpbr3kzke3c1k = $_Ovof7nampsxpce5anbka8 * $_Oxvbpys5equfx3jn7x8bd / 100.00; if ($_0vwla5emtpbr3kzke3c1k > 1.0) { $_0vwla5emtpbr3kzke3c1k = 1.0; } return Color::Hsl($_leo54yv384r2wofr->Hue, $_0vwla5emtpbr3kzke3c1k, $_leo54yv384r2wofr->Luminosity); } public function get_Hue() { if (($this->R == $this->G) && ($this->G == $this->B)) { return 0; } $_osrg1t4sjjg6togjwpfnkofkdx = $this->R / 255.00; $_Ofvrqaq3dkqbpnutr1pui = $this->G / 255.00; $_lj7xpq62wh5ykm69muwzydimmr = $this->B / 255.00; $_On0bsft5y1bpew627uvnef1voe = $_osrg1t4sjjg6togjwpfnkofkdx; if ($_Ofvrqaq3dkqbpnutr1pui > $_On0bsft5y1bpew627uvnef1voe) { $_On0bsft5y1bpew627uvnef1voe = $_Ofvrqaq3dkqbpnutr1pui; } if ($_lj7xpq62wh5ykm69muwzydimmr > $_On0bsft5y1bpew627uvnef1voe) { $_On0bsft5y1bpew627uvnef1voe = $_lj7xpq62wh5ykm69muwzydimmr; } $_ir97fowpt4rhzsue = $_osrg1t4sjjg6togjwpfnkofkdx; if ($_Ofvrqaq3dkqbpnutr1pui < $_ir97fowpt4rhzsue) { $_ir97fowpt4rhzsue = $_Ofvrqaq3dkqbpnutr1pui; } if ($_lj7xpq62wh5ykm69muwzydimmr < $_ir97fowpt4rhzsue) { $_ir97fowpt4rhzsue = $_lj7xpq62wh5ykm69muwzydimmr; } $_leo0cp3dlb5dl1l4gsj9a = $_On0bsft5y1bpew627uvnef1voe - $_ir97fowpt4rhzsue; $_0i6o9ucnl2yymb1v = 0; if ($_osrg1t4sjjg6togjwpfnkofkdx == $_On0bsft5y1bpew627uvnef1voe) { $_0i6o9ucnl2yymb1v = ($_Ofvrqaq3dkqbpnutr1pui - $_lj7xpq62wh5ykm69muwzydimmr) / $_leo0cp3dlb5dl1l4gsj9a; } else { if ($_Ofvrqaq3dkqbpnutr1pui == $_On0bsft5y1bpew627uvnef1voe) { $_0i6o9ucnl2yymb1v = 2 + (($_lj7xpq62wh5ykm69muwzydimmr - $_osrg1t4sjjg6togjwpfnkofkdx) / $_leo0cp3dlb5dl1l4gsj9a); } else { if ($_lj7xpq62wh5ykm69muwzydimmr == $_On0bsft5y1bpew627uvnef1voe) { $_0i6o9ucnl2yymb1v = 4 + (($_osrg1t4sjjg6togjwpfnkofkdx - $_Ofvrqaq3dkqbpnutr1pui) / $_leo0cp3dlb5dl1l4gsj9a); } } } $_0i6o9ucnl2yymb1v = $_0i6o9ucnl2yymb1v * 60; if ($_0i6o9ucnl2yymb1v < 0) { $_0i6o9ucnl2yymb1v = $_0i6o9ucnl2yymb1v + 360; } return $_0i6o9ucnl2yymb1v; } public function get_Saturation() { $_0wjnutachsbct7os = $this->R / 255.00; $_Oanqket2fwro5o3dtxdszp3u8b = $this->G / 255.00; $_iapv3eu3ezsgovc6 = $this->B / 255.00; $_o7v4r96ebrlxytgap532uxd9do = $_0wjnutachsbct7os; if ($_Oanqket2fwro5o3dtxdszp3u8b > $_o7v4r96ebrlxytgap532uxd9do) { $_o7v4r96ebrlxytgap532uxd9do = $_Oanqket2fwro5o3dtxdszp3u8b; } if ($_iapv3eu3ezsgovc6 > $_o7v4r96ebrlxytgap532uxd9do) { $_o7v4r96ebrlxytgap532uxd9do = $_iapv3eu3ezsgovc6; } $_o32ma2rp96zu4kz7lhnkb = $_0wjnutachsbct7os; if ($_Oanqket2fwro5o3dtxdszp3u8b < $_o32ma2rp96zu4kz7lhnkb) { $_o32ma2rp96zu4kz7lhnkb = $_Oanqket2fwro5o3dtxdszp3u8b; } if ($_iapv3eu3ezsgovc6 < $_o32ma2rp96zu4kz7lhnkb) { $_o32ma2rp96zu4kz7lhnkb = $_iapv3eu3ezsgovc6; } $_O141tik9g51ug4e5cqitqukpa4 = 0; if ($_o7v4r96ebrlxytgap532uxd9do != $_o32ma2rp96zu4kz7lhnkb) { $_Ic1onw2thvjqsn1xo5h3o60qus = $_o7v4r96ebrlxytgap532uxd9do - $_o32ma2rp96zu4kz7lhnkb; $_Ojl8r5eiu64ydrj2 = ($_o7v4r96ebrlxytgap532uxd9do + $_o32ma2rp96zu4kz7lhnkb) / 2; if ($_Ojl8r5eiu64ydrj2 <= 0.50) { $_O141tik9g51ug4e5cqitqukpa4 = $_Ic1onw2thvjqsn1xo5h3o60qus / (2 * $_Ojl8r5eiu64ydrj2); } else { $_O141tik9g51ug4e5cqitqukpa4 = $_Ic1onw2thvjqsn1xo5h3o60qus / (2 - (2 * $_Ojl8r5eiu64ydrj2)); } } return $_O141tik9g51ug4e5cqitqukpa4; } public function get_Luminosity() { $_0zksc66js9av7bqq = $this->R / 255.00; $_i2u51yinv5ic4hur = $this->G / 255.00; $_iy6fnm3dsbknxo6edcwjk = $this->B / 255.00; $_143i3fv4ax5sc891hir1g = $_0zksc66js9av7bqq; if ($_i2u51yinv5ic4hur > $_143i3fv4ax5sc891hir1g) { $_143i3fv4ax5sc891hir1g = $_i2u51yinv5ic4hur; } if ($_iy6fnm3dsbknxo6edcwjk > $_143i3fv4ax5sc891hir1g) { $_143i3fv4ax5sc891hir1g = $_iy6fnm3dsbknxo6edcwjk; } $_1yi352b82a7cv2l9am22g = $_0zksc66js9av7bqq; if ($_i2u51yinv5ic4hur < $_1yi352b82a7cv2l9am22g) { $_1yi352b82a7cv2l9am22g = $_i2u51yinv5ic4hur; } if ($_iy6fnm3dsbknxo6edcwjk < $_1yi352b82a7cv2l9am22g) { $_1yi352b82a7cv2l9am22g = $_iy6fnm3dsbknxo6edcwjk; } return ($_143i3fv4ax5sc891hir1g + $_1yi352b82a7cv2l9am22g) / 2; } public static function Hsl($_i5urisrwh58klig642lakpl841, $_isfii8hq98h7hox8pd2nf5odm5, $_Il8n8wmj1vtdug2y) { $_opqslbtl1zojtb621izb5ab3ph = $_Il8n8wmj1vtdug2y; $_i3tebml0p4nsfawcaohy8 = $_Il8n8wmj1vtdug2y; $_o41qlr3p4cxespd560u59 = $_Il8n8wmj1vtdug2y; $_ixea6xb22mv56xp9svfblc5khi = ($_Il8n8wmj1vtdug2y <= 0.5) ? ($_Il8n8wmj1vtdug2y * (1.0 + $_isfii8hq98h7hox8pd2nf5odm5)) : ($_Il8n8wmj1vtdug2y + $_isfii8hq98h7hox8pd2nf5odm5 - $_Il8n8wmj1vtdug2y * $_isfii8hq98h7hox8pd2nf5odm5); if ($_ixea6xb22mv56xp9svfblc5khi > 0) { $_Oi768639t97je1co2fr0i = 2 * $_Il8n8wmj1vtdug2y - $_ixea6xb22mv56xp9svfblc5khi; $_Iqqvsni5i6rv5wgg7kkcfqgshk = ($_ixea6xb22mv56xp9svfblc5khi - $_Oi768639t97je1co2fr0i) / $_ixea6xb22mv56xp9svfblc5khi; $_i5urisrwh58klig642lakpl841 /= 60.00; $_O1oulc2357jxkzg4 = (int)$_i5urisrwh58klig642lakpl841; $_onc8ztgn9to3zzqkq2f8l = $_i5urisrwh58klig642lakpl841 - $_O1oulc2357jxkzg4; $_Iznfqy1gqbaovxje = $_ixea6xb22mv56xp9svfblc5khi * $_Iqqvsni5i6rv5wgg7kkcfqgshk * $_onc8ztgn9to3zzqkq2f8l; $_0jwpsqkp7my7vwwo = $_Oi768639t97je1co2fr0i + $_Iznfqy1gqbaovxje; $_1u3rv6aysrplw8hi = $_ixea6xb22mv56xp9svfblc5khi - $_Iznfqy1gqbaovxje; switch ($_O1oulc2357jxkzg4) { case 0: $_opqslbtl1zojtb621izb5ab3ph = $_ixea6xb22mv56xp9svfblc5khi; $_i3tebml0p4nsfawcaohy8 = $_0jwpsqkp7my7vwwo; $_o41qlr3p4cxespd560u59 = $_Oi768639t97je1co2fr0i; break; case 1: $_opqslbtl1zojtb621izb5ab3ph = $_1u3rv6aysrplw8hi; $_i3tebml0p4nsfawcaohy8 = $_ixea6xb22mv56xp9svfblc5khi; $_o41qlr3p4cxespd560u59 = $_Oi768639t97je1co2fr0i; break; case 2: $_opqslbtl1zojtb621izb5ab3ph = $_Oi768639t97je1co2fr0i; $_i3tebml0p4nsfawcaohy8 = $_ixea6xb22mv56xp9svfblc5khi; $_o41qlr3p4cxespd560u59 = $_0jwpsqkp7my7vwwo; break; case 3: $_opqslbtl1zojtb621izb5ab3ph = $_Oi768639t97je1co2fr0i; $_i3tebml0p4nsfawcaohy8 = $_1u3rv6aysrplw8hi; $_o41qlr3p4cxespd560u59 = $_ixea6xb22mv56xp9svfblc5khi; break; case 4: $_opqslbtl1zojtb621izb5ab3ph = $_0jwpsqkp7my7vwwo; $_i3tebml0p4nsfawcaohy8 = $_Oi768639t97je1co2fr0i; $_o41qlr3p4cxespd560u59 = $_ixea6xb22mv56xp9svfblc5khi; break; case 5: $_opqslbtl1zojtb621izb5ab3ph = $_ixea6xb22mv56xp9svfblc5khi; $_i3tebml0p4nsfawcaohy8 = $_Oi768639t97je1co2fr0i; $_o41qlr3p4cxespd560u59 = $_1u3rv6aysrplw8hi; break; } } return Color::Rgb((int)round($_opqslbtl1zojtb621izb5ab3ph * 255), (int)round($_i3tebml0p4nsfawcaohy8 * 255), (int)round($_o41qlr3p4cxespd560u59 * 255)); } public function __get($_oiff0yq1406mdkll3sx50tkige) { if (method_exists($this, ($_07lvu9eoz8iwo5xmic21l = "\147\145\x74\x5f".$_oiff0yq1406mdkll3sx50tkige))) { return $this->$_07lvu9eoz8iwo5xmic21l(); } else return; } public function __isset($_okhfxzdppkc38pkswj5b4) { if (method_exists($this, ($_I2npvl7kn6a879wjjkykk5u4of = "\x69\x73\x73\x65\164\x5f".$_okhfxzdppkc38pkswj5b4))) { return $this->$_I2npvl7kn6a879wjjkykk5u4of(); } else return; } public function __set($_ots5ofl8pphh7zpm30r51m6hs2, $_llrhmu4i4dzv4uwzdmf1us2p7z) { if (method_exists($this, ($_i4hx1aow75abph8ns7p1bqlffb = "\x73\x65\164\137".$_ots5ofl8pphh7zpm30r51m6hs2))) { $this->$_i4hx1aow75abph8ns7p1bqlffb($_llrhmu4i4dzv4uwzdmf1us2p7z); } } public function __unset($_I4wa99z076wndciq) { if (method_exists($this, ($_I5wvpcgpq4hrga8u = "\165\x6e\x73\145\164\137".$_I4wa99z076wndciq))) { $this->$_I5wvpcgpq4hrga8u(); } } } class Rotation { public function __construct() { } const DefaultRotationAngle = 0; private $_I6d8d1517owvo3gq163c7fw35h; public function get_AngleRange() { return $this->_I6d8d1517owvo3gq163c7fw35h; } public function set_AngleRange(RandomRange $_Ijnxzcelpb5efdwb) { if (-360 >= $_Ijnxzcelpb5efdwb->Min || 360 <= $_Ijnxzcelpb5efdwb->Max) { throw new Exception("\x53\x68\x61\x70\x65\x20\x72\x6f\164\141\164\x69\x6f\x6e\40\x61\156\x67\x6c\145\40\155\x75\163\164\40\142\145\40\x62\145\164\x77\145\145\x6e\40\x2d\x33\x35\71\x20\x61\x6e\x64\40\x33\x35\71\x3a\x20\x3c{$_Ijnxzcelpb5efdwb->Min}\54\40{$_Ijnxzcelpb5efdwb->Max}\76"); } $this->_I6d8d1517owvo3gq163c7fw35h = $_Ijnxzcelpb5efdwb; } public function get_Angle() { if ($this->HasValue()) { return $this->_I6d8d1517owvo3gq163c7fw35h->Next; } return self::DefaultRotationAngle; } public function set_Angle($_0bxnukptflcedxhm) { if (self::DefaultRotationAngle == $_0bxnukptflcedxhm) { unset($this->_I6d8d1517owvo3gq163c7fw35h); } else { $this->AngleRange = new RandomRange($_0bxnukptflcedxhm); } } public function HasValue() { return (isset($this->_I6d8d1517owvo3gq163c7fw35h)); } public function __get($_0mitqk4yup5ojmyc9bilx5fuug) { if (method_exists($this, ($_o70vlaacqh52qawzb03i3 = "\147\145\x74\137".$_0mitqk4yup5ojmyc9bilx5fuug))) { return $this->$_o70vlaacqh52qawzb03i3(); } else return; } public function __isset($_0gxgq7xwc20iuvcg15xijeenib) { if (method_exists($this, ($_ixrkbfretzbz0l2u = "\x69\x73\163\145\164\x5f".$_0gxgq7xwc20iuvcg15xijeenib))) { return $this->$_ixrkbfretzbz0l2u(); } else return; } public function __set($_ol2zldh8k9se988e, $_0y0ty9k5oe458hzxu5hfofk2xe) { if (method_exists($this, ($_ldrcbzw75kqmoqsel0vek = "\x73\x65\x74\x5f".$_ol2zldh8k9se988e))) { $this->$_ldrcbzw75kqmoqsel0vek($_0y0ty9k5oe458hzxu5hfofk2xe); } } public function __unset($_13jeit94w0p7juw26j2av) { if (method_exists($this, ($_Ov1e37rk6jaerew4 = "\165\x6e\163\145\x74\x5f".$_13jeit94w0p7juw26j2av))) { $this->$_Ov1e37rk6jaerew4(); } } } class Scaling { public function __construct() { } const DefaultScalingPercentage = 100; private $_Oe5jvkdwou3f2c0zuttx9; public function get_xScalingPercentageRange() { return $this->_Oe5jvkdwou3f2c0zuttx9; } public function set_xScalingPercentageRange(RandomRange $_I3xfkz1zj4ghcypv548wb) { if (0 >= $_I3xfkz1zj4ghcypv548wb->Min || 200 <= $_I3xfkz1zj4ghcypv548wb->Max) { throw new Exception("\123\150\x61\x70\145\x20\163\143\141\154\151\156\x67\40\x70\x65\162\143\145\156\164\141\147\145\40\155\x75\x73\164\x20\x62\145\40\142\145\x74\x77\x65\145\156\x20\x31\x20\x61\x6e\x64\40\x31\71\x39\x3a\40\74{$_I3xfkz1zj4ghcypv548wb->Min}\x2c\40{$_I3xfkz1zj4ghcypv548wb->Max}\76"); } $this->_Oe5jvkdwou3f2c0zuttx9 = $_I3xfkz1zj4ghcypv548wb; } public function get_xScalingPercentage() { if ($this->HasValue()) { return $this->_Oe5jvkdwou3f2c0zuttx9->Next; } return self::DefaultScalingPercentage; } public function set_xScalingPercentage($_ih7wn3j6lgj2x5repprp7mqepp) { if (self::DefaultScalingPercentage == $_ih7wn3j6lgj2x5repprp7mqepp) { unset($this->_Oe5jvkdwou3f2c0zuttx9); } else { $this->xScalingPercentageRange = new RandomRange($_ih7wn3j6lgj2x5repprp7mqepp); } } public function get_xScalingFactor() { return $this->xScalingPercentage / 100.00; } private $_os40wsfh8y1aggqpjqdbaafvmn; public function get_yScalingPercentageRange() { return $this->_os40wsfh8y1aggqpjqdbaafvmn; } public function set_yScalingPercentageRange(RandomRange $_Igkoh62a24uiubgg) { if (0 >= $_Igkoh62a24uiubgg->Min || 200 <= $_Igkoh62a24uiubgg->Max) { throw new Exception("\123\x68\x61\x70\145\x20\163\143\141\x6c\x69\x6e\147\x20\x70\145\x72\143\145\156\164\141\147\x65\40\155\165\x73\x74\x20\142\145\x20\x62\145\164\167\145\145\156\40\61\40\141\x6e\144\40\61\71\x39\72\40\74{$_Igkoh62a24uiubgg->Min}\x2c\40{$_Igkoh62a24uiubgg->Max}\76"); } $this->_os40wsfh8y1aggqpjqdbaafvmn = $_Igkoh62a24uiubgg; } public function get_yScalingPercentage() { if ($this->HasValue()) { return $this->_os40wsfh8y1aggqpjqdbaafvmn->Next; } return self::DefaultScalingPercentage; } public function set_yScalingPercentage($_i5x1enwka57cm53pnr3y8xl49v) { if (self::DefaultScalingPercentage == $_i5x1enwka57cm53pnr3y8xl49v) { unset($this->_os40wsfh8y1aggqpjqdbaafvmn); } else { $this->yScalingPercentageRange = new RandomRange($_i5x1enwka57cm53pnr3y8xl49v); } } public function get_yScalingFactor() { return $this->yScalingPercentage / 100.00; } public function HasValue() { return (isset($this->_Oe5jvkdwou3f2c0zuttx9) || isset($this->_os40wsfh8y1aggqpjqdbaafvmn)); } public function __get($_l4pl7p4s327zjl22yg07ushmm5) { if (method_exists($this, ($_iuowbci3ignzsr8w1tf9s = "\147\145\x74\x5f".$_l4pl7p4s327zjl22yg07ushmm5))) { return $this->$_iuowbci3ignzsr8w1tf9s(); } else return; } public function __isset($_0ajuj4aayiuxu2xy1jxce) { if (method_exists($this, ($_18p2i36lanhrp0m7hijw74vsuu = "\151\x73\163\x65\164\x5f".$_0ajuj4aayiuxu2xy1jxce))) { return $this->$_18p2i36lanhrp0m7hijw74vsuu(); } else return; } public function __set($_I9i38ew9gfkm1xln, $_O16k5grw8ajwlj6p) { if (method_exists($this, ($_1j1i2zpbinuyxmihuahz2 = "\x73\x65\164\x5f".$_I9i38ew9gfkm1xln))) { $this->$_1j1i2zpbinuyxmihuahz2($_O16k5grw8ajwlj6p); } } public function __unset($_I6ahn1hsla3jnxc9bu54d) { if (method_exists($this, ($_08rkyzshdspfzr91 = "\x75\156\x73\x65\164\137".$_I6ahn1hsla3jnxc9bu54d))) { $this->$_08rkyzshdspfzr91(); } } } class Translation { public function __construct() { } const DefaultTranslationOffset = 0; private $_ltrs6ze784se9tyyvr2el; public function get_xOffsetRange() { return $this->_ltrs6ze784se9tyyvr2el; } public function set_xOffsetRange(RandomRange $_Izrq5ntp2p8ull7p) { if (-500 >= $_Izrq5ntp2p8ull7p->Min || 500 <= $_Izrq5ntp2p8ull7p->Max) { throw new Exception("\123\150\141\160\145\40\x74\162\x61\x6e\x73\154\141\164\151\157\156\x20\157\x66\x66\x73\145\164\40\x6d\165\x73\164\40\142\x65\x20\142\x65\x74\167\145\x65\x6e\x20\x2d\x34\x39\x39\x20\141\x6e\x64\x20\64\71\71\72\40\x3c{$_Izrq5ntp2p8ull7p->Min}\54\40{$_Izrq5ntp2p8ull7p->Max}\x3e"); } $this->_ltrs6ze784se9tyyvr2el = $_Izrq5ntp2p8ull7p; } public function get_xOffset() { if (isset($this->_ltrs6ze784se9tyyvr2el)) { return $this->_ltrs6ze784se9tyyvr2el->Next; } return self::DefaultTranslationOffset; } public function set_xOffset($_ohgtozgga62zvhdqedsmk) { if (self::DefaultTranslationOffset == $_ohgtozgga62zvhdqedsmk) { unset($this->_ltrs6ze784se9tyyvr2el); } else { $this->xOffsetRange = new RandomRange($_ohgtozgga62zvhdqedsmk); } } public function get_xOffsetRelative($_Oakzy6cuqy4ym8xecfmae) { return (int) ($_Oakzy6cuqy4ym8xecfmae * $this->xOffset / 100.00); } private $_l5yin7mw47zeske9ga8a7; public function get_yOffsetRange() { return $this->_l5yin7mw47zeske9ga8a7; } public function set_yOffsetRange(RandomRange $_11cul08tihughwlwlqsw9) { if (-500 >= $_11cul08tihughwlwlqsw9->Min || 500 <= $_11cul08tihughwlwlqsw9->Max) { throw new Exception("\123\x68\x61\160\x65\x20\x74\162\141\x6e\x73\154\x61\x74\x69\157\x6e\x20\x6f\x66\x66\x73\x65\164\40\155\165\x73\x74\x20\x62\x65\x20\x62\145\x74\x77\x65\x65\156\40\55\x34\71\71\x20\x61\156\144\x20\64\71\71\72\x20\x3c{$_11cul08tihughwlwlqsw9->Min}\54\40{$_11cul08tihughwlwlqsw9->Max}\76"); } $this->_l5yin7mw47zeske9ga8a7 = $_11cul08tihughwlwlqsw9; } public function get_yOffset() { if (isset($this->_l5yin7mw47zeske9ga8a7)) { return $this->_l5yin7mw47zeske9ga8a7->Next; } return self::DefaultTranslationOffset; } public function set_yOffset($_i246uby1wg2ym4s6sg1r3) { if (self::DefaultTranslationOffset == $_i246uby1wg2ym4s6sg1r3) { unset($this->_l5yin7mw47zeske9ga8a7); } else { $this->yOffsetRange = new RandomRange($_i246uby1wg2ym4s6sg1r3); } } public function get_yOffsetRelative($_obfyrzfrcjau0666hngza) { return (int) ($_obfyrzfrcjau0666hngza * $this->yOffset / 100.00); } public function HasValue() { return (isset($this->_ltrs6ze784se9tyyvr2el) || isset($this->_l5yin7mw47zeske9ga8a7)); } public function __get($_i53rjnbxa7jns3nmm5aoq) { if (method_exists($this, ($_Oeb2uihf4spwrxb0vxnuy = "\x67\x65\164\137".$_i53rjnbxa7jns3nmm5aoq))) { return $this->$_Oeb2uihf4spwrxb0vxnuy(); } else return; } public function __isset($_Iig0e1y58mduv55r) { if (method_exists($this, ($_Ix89yp355n76bxu7 = "\x69\163\163\145\164\x5f".$_Iig0e1y58mduv55r))) { return $this->$_Ix89yp355n76bxu7(); } else return; } public function __set($_0usaigx1v3u811qeobeps, $_lral09noe9jsfh0ou3jwgt8cos) { if (method_exists($this, ($_0bif0qjic4oxui07 = "\163\x65\164\x5f".$_0usaigx1v3u811qeobeps))) { $this->$_0bif0qjic4oxui07($_lral09noe9jsfh0ou3jwgt8cos); } } public function __unset($_0qzp23m6skn8xxtq) { if (method_exists($this, ($_Obwx1zaqdoe65kokt1sdnt0q4j = "\x75\x6e\x73\x65\164\x5f".$_0qzp23m6skn8xxtq))) { $this->$_Obwx1zaqdoe65kokt1sdnt0q4j(); } } } class Warp { public function __construct() { } const DefaultWarpPercentage = 0; private $_Oq3oeutjt6sxdznmv9sl8; public function get_WarpPercentageRange() { return $this->_Oq3oeutjt6sxdznmv9sl8; } public function set_WarpPercentageRange(RandomRange $_itp8g7xdtt86mfr3msi802h90j) { if (0 >= $_itp8g7xdtt86mfr3msi802h90j->Min || 100 <= $_itp8g7xdtt86mfr3msi802h90j->Max) { throw new Exception("\123\150\141\x70\145\x20\167\x61\162\x70\x20\x70\145\162\143\x65\156\164\141\x67\x65\x20\x6d\x75\x73\164\x20\x62\145\40\142\145\x74\x77\x65\x65\x6e\40\x31\40\141\x6e\x64\40\x39\x39\x3a\x20\74{$_itp8g7xdtt86mfr3msi802h90j->Min}\54\x20{$_itp8g7xdtt86mfr3msi802h90j->Max}\76"); } $this->_Oq3oeutjt6sxdznmv9sl8 = $_itp8g7xdtt86mfr3msi802h90j; } public function get_WarpPercentage() { if ($this->HasValue()) { return $this->_Oq3oeutjt6sxdznmv9sl8->Next; } return self::DefaultWarpPercentage; } public function set_WarpPercentage($_okw1w9xdp2qd6a8aq6vkkpcaxo) { if (self::DefaultWarpPercentage == $_okw1w9xdp2qd6a8aq6vkkpcaxo) { unset($this->_Oq3oeutjt6sxdznmv9sl8); } else { $this->WarpPercentageRange = new RandomRange($_okw1w9xdp2qd6a8aq6vkkpcaxo); } } public function get_WarpFactor() { return $this->WarpPercentage / 100.00; } public function HasValue() { return (isset($this->_Oq3oeutjt6sxdznmv9sl8)); } public function __get($_Ih2cuvbu3v5kqeam) { if (method_exists($this, ($_I3y6ha4nyqz4a9y06soxpksvki = "\147\145\164\137".$_Ih2cuvbu3v5kqeam))) { return $this->$_I3y6ha4nyqz4a9y06soxpksvki(); } else return; } public function __isset($_0ck4is946uwewrhoopbdfgdlcy) { if (method_exists($this, ($_iv4ndf1fndth4v8g87c7n = "\151\163\x73\x65\164\x5f".$_0ck4is946uwewrhoopbdfgdlcy))) { return $this->$_iv4ndf1fndth4v8g87c7n(); } else return; } public function __set($_ihwk2prhr3inkvuc8da5o, $_i7jgga110dvtxh7pio1it) { if (method_exists($this, ($_oo2u9gnamjzyajqf = "\163\145\x74\x5f".$_ihwk2prhr3inkvuc8da5o))) { $this->$_oo2u9gnamjzyajqf($_i7jgga110dvtxh7pio1it); } } public function __unset($_0qknl7uv5bhkg3s0xv2g1sn8d8) { if (method_exists($this, ($_i67t68yaiz6k9q1eji4nrgb0fl = "\165\x6e\163\145\164\x5f".$_0qknl7uv5bhkg3s0xv2g1sn8d8))) { $this->$_i67t68yaiz6k9q1eji4nrgb0fl(); } } } class Transform { public function __construct() { $this->_1cyt93ubtmlxobp4 = new Rotation(); $this->_Oh26j4gwaki1skx5 = new Scaling(); $this->_lzmxchon2iv6itui = new Translation(); $this->_O3fiqh6z99brstr0nyyp3s043p = new Warp(); } private $_1cyt93ubtmlxobp4; public function get_Rotation() { return $this->_1cyt93ubtmlxobp4; } public function set_Rotation(Rotation $_Oud1cmnex4y50os7) { $this->_1cyt93ubtmlxobp4 = $_Oud1cmnex4y50os7; } private $_Oh26j4gwaki1skx5; public function get_Scaling() { return $this->_Oh26j4gwaki1skx5; } public function set_Scaling(Scaling $_0bjr2zsur71t7cyh77cte) { $this->_Oh26j4gwaki1skx5 = $_0bjr2zsur71t7cyh77cte; } private $_lzmxchon2iv6itui; public function get_Translation() { return $this->_lzmxchon2iv6itui; } public function set_Translation(Translation $_istenk81he8rvyatlp2eyxvoap) { $this->_lzmxchon2iv6itui = $_istenk81he8rvyatlp2eyxvoap; } private $_O3fiqh6z99brstr0nyyp3s043p; public function get_Warp() { return $this->_O3fiqh6z99brstr0nyyp3s043p; } public function set_Warp(Warp $_1dgla7hfmo4cryv5) { $this->_O3fiqh6z99brstr0nyyp3s043p = $_1dgla7hfmo4cryv5; } public static function Identity() { return new Transform(); } public function __get($_lkbgnu2wdp88cd2fx1qdg) { if (method_exists($this, ($_Ow73cnxw1956zcvgnxwtf = "\x67\145\164\x5f".$_lkbgnu2wdp88cd2fx1qdg))) { return $this->$_Ow73cnxw1956zcvgnxwtf(); } else return; } public function __isset($_I47d1uftg8d3o4vxoihnq) { if (method_exists($this, ($_o5u4thbbmj9554hg34aca = "\151\163\163\145\x74\137".$_I47d1uftg8d3o4vxoihnq))) { return $this->$_o5u4thbbmj9554hg34aca(); } else return; } public function __set($_lmtqd5yebp6jbh7c, $_0n4rk7td7ahtrswp) { if (method_exists($this, ($_l7rha2jdel1lcv5ii33dn = "\163\145\164\137".$_lmtqd5yebp6jbh7c))) { $this->$_l7rha2jdel1lcv5ii33dn($_0n4rk7td7ahtrswp); } } public function __unset($_0u4ylveictgcfvc8) { if (method_exists($this, ($_1m514let1vl4d19xz7fzkqic3x = "\x75\156\163\x65\x74\x5f".$_0u4ylveictgcfvc8))) { $this->$_1m514let1vl4d19xz7fzkqic3x(); } } } class LineElement { function __construct(Color $_19q2k9bnk4tmir3qxvdlrw0m6t, $_02qixc6yqmejdyzs = self::Continuous, $_I3lzm4zhw0hkgoz615e6hxuhq1 = self::Continuous) { $this->_ovozjlnrasuqzov8 = $_19q2k9bnk4tmir3qxvdlrw0m6t; if (self::Continuous != $_02qixc6yqmejdyzs) { if (self::Continuous == $_I3lzm4zhw0hkgoz615e6hxuhq1) { $this->Length = $_02qixc6yqmejdyzs; } else { $this->LengthRange = new RandomRange($_02qixc6yqmejdyzs, $_I3lzm4zhw0hkgoz615e6hxuhq1); } } } const Continuous = 0; private $_ovozjlnrasuqzov8; public function get_Color() { return $this->_ovozjlnrasuqzov8; } public function set_Color(Color $_lr97h35n3gsdy8n2ufo8ffnir2) { $this->_ovozjlnrasuqzov8 = $_lr97h35n3gsdy8n2ufo8ffnir2; } private $_0zc248vzgpaeb0i0yfd9a; public function get_LengthRange() { return $this->_0zc248vzgpaeb0i0yfd9a; } public function set_LengthRange(RandomRange $_oa2wzcyar2o7fhcih9vsu4n2v8) { if (0 >= $_oa2wzcyar2o7fhcih9vsu4n2v8->Min) { throw new Exception("\124\x68\x65\40\154\x65\156\x67\164\150\40\x6f\x66\40\141\40\154\x69\x6e\145\40\x73\x65\147\155\145\156\164\x20\150\141\163\x20\x74\157\40\x62\x65\x20\x61\40\x70\x6f\163\x69\164\151\166\145\40\151\x6e\x74\145\147\145\x72\40\76\x3d\x20\x31\x3a\x20\x3c{$_oa2wzcyar2o7fhcih9vsu4n2v8->Min}\54\40{$_oa2wzcyar2o7fhcih9vsu4n2v8->Max}\x3e"); } $this->_0zc248vzgpaeb0i0yfd9a = $_oa2wzcyar2o7fhcih9vsu4n2v8; } public function get_Length() { if ($this->HasValue()) { return $this->_0zc248vzgpaeb0i0yfd9a->Next; } return self::Continuous; } public function set_Length($_l7gr1yvr8n75zyze3mhba) { $this->LengthRange = new RandomRange($_l7gr1yvr8n75zyze3mhba); } public function __get($_i7u5k35uw6mkb5n92athnqbyls) { if (method_exists($this, ($_i4vzjjrmfh4mpae7edxet = "\147\x65\x74\137".$_i7u5k35uw6mkb5n92athnqbyls))) { return $this->$_i4vzjjrmfh4mpae7edxet(); } else return; } public function __isset($_Ik8pzt8qkyri3f9u) { if (method_exists($this, ($_irelsg3w67ixz4rz = "\151\x73\x73\x65\x74\x5f".$_Ik8pzt8qkyri3f9u))) { return $this->$_irelsg3w67ixz4rz(); } else return; } public function __set($_o7uan3yfxk5vjs1y, $_Onpuiplbyeris10ncjwf9) { if (method_exists($this, ($_i3ab388a4i0n8k1vlzj9a2g5us = "\x73\x65\x74\x5f".$_o7uan3yfxk5vjs1y))) { $this->$_i3ab388a4i0n8k1vlzj9a2g5us($_Onpuiplbyeris10ncjwf9); } } public function __unset($_lj8v8rddze89cpmublc275t5os) { if (method_exists($this, ($_Id4ehpdzlqlunxboi2ygu = "\x75\156\x73\145\x74\x5f".$_lj8v8rddze89cpmublc275t5os))) { $this->$_Id4ehpdzlqlunxboi2ygu(); } } } class LineLayer implements ArrayAccess { public function __construct($_l3owi8bix5ck6kuo = 0, $_O6k5np8hz57qrvupqpv4w = null) { $this->Thickness = $_l3owi8bix5ck6kuo; $_O3aqksur6hhlm5ch = array(); if (isset($_O6k5np8hz57qrvupqpv4w)) { $this->_iotroo1ybgxnrr10113w8[] = $_O6k5np8hz57qrvupqpv4w; } } private $_0uin2qi4uej66njw; public function get_ThicknessRange() { return $this->_0uin2qi4uej66njw; } public function set_ThicknessRange(RandomRange $_16t75bmvu93ro8vo) { if (0 >= $_16t75bmvu93ro8vo->Min) { throw new Exception("\x54\x68\x65\x20\164\150\x69\143\x6b\x6e\145\x73\163\x20\157\x66\40\141\40\x6c\x69\x6e\145\40\x6c\x61\x79\145\162\x20\150\141\163\x20\x74\157\40\x62\x65\40\x61\40\x70\157\x73\151\164\151\166\145\40\x69\156\x74\145\147\145\x72\40\x3e\75\x20\61\72\40\74{$_16t75bmvu93ro8vo->Min}\54\40{$_16t75bmvu93ro8vo->Max}\x3e"); } $this->_0uin2qi4uej66njw = $_16t75bmvu93ro8vo; } public function get_Thickness() { if (isset($this->_0uin2qi4uej66njw)) { return $this->_0uin2qi4uej66njw->Next; } return 0; } public function set_Thickness($_I6ph58ntrqsf3eg55h1xn) { $this->ThicknessRange = new RandomRange($_I6ph58ntrqsf3eg55h1xn); } private $_iotroo1ybgxnrr10113w8; public function offsetSet($_Idobe8yg5g8t095c, $_0z6lbmo5a1l4ilnztpe6x) { if (is_null($_Idobe8yg5g8t095c)) { $this->_iotroo1ybgxnrr10113w8[] = $_0z6lbmo5a1l4ilnztpe6x; } else { $this->_iotroo1ybgxnrr10113w8[$_Idobe8yg5g8t095c] = $_0z6lbmo5a1l4ilnztpe6x; } } public function offsetExists($_lylxo0awkgudrsmng5bbyer3zx) { return isset($this->_iotroo1ybgxnrr10113w8[$_lylxo0awkgudrsmng5bbyer3zx]); } public function offsetUnset($_Ik36kox4g0j1s6mv1oai2jcxfg) { unset($this->_iotroo1ybgxnrr10113w8[$_Ik36kox4g0j1s6mv1oai2jcxfg]); } public function offsetGet($_Irw396t5hp9a04hz8ay29xry3e) { return isset($this->_iotroo1ybgxnrr10113w8[$_Irw396t5hp9a04hz8ay29xry3e]) ? $this->_iotroo1ybgxnrr10113w8[$_Irw396t5hp9a04hz8ay29xry3e] : null; } public static function Solid($_iwgz0j6hdipph7koot7pd, Color $_Iqjhktzk1ldaybnqi5z06d3tcm) { return new LineLayer($_iwgz0j6hdipph7koot7pd, new LineElement($_Iqjhktzk1ldaybnqi5z06d3tcm)); } public static function Dashed($_ikrn8whale3xf3utin7mll2fkg, Color $_Iii7uqmufy5x1nuu5yezg, Color $_oyevr3t9m0fdtqe0, $_oga32d9jxb0etd7p7rjib7pvhf) { $_0r0vpk53vwtrvckhkls629990g = new LineLayer($_ikrn8whale3xf3utin7mll2fkg); $_0r0vpk53vwtrvckhkls629990g[] = new LineElement($_Iii7uqmufy5x1nuu5yezg, $_oga32d9jxb0etd7p7rjib7pvhf); $_0r0vpk53vwtrvckhkls629990g[] = new LineElement($_oyevr3t9m0fdtqe0, $_oga32d9jxb0etd7p7rjib7pvhf); return $_0r0vpk53vwtrvckhkls629990g; } public function __get($_1aailgtij59eythrxdu95swmbz) { if (method_exists($this, ($_Iy1pd4a17t84whem6j5eg = "\x67\x65\x74\137".$_1aailgtij59eythrxdu95swmbz))) { return $this->$_Iy1pd4a17t84whem6j5eg(); } else return; } public function __isset($_l653frri96cxdmsu) { if (method_exists($this, ($_0hmrjdgrzka4qeoe1ku4ed8za5 = "\x69\x73\x73\x65\164\137".$_l653frri96cxdmsu))) { return $this->$_0hmrjdgrzka4qeoe1ku4ed8za5(); } else return; } public function __set($_oe4k9nvs09et0jqqtbtqy, $_1ldnfyizx38pxctsdgtma) { if (method_exists($this, ($_0jijz95i21fm3bxw = "\163\x65\x74\137".$_oe4k9nvs09et0jqqtbtqy))) { $this->$_0jijz95i21fm3bxw($_1ldnfyizx38pxctsdgtma); } } public function __unset($_06ymt4cf551mh4uvn8mwkv3o36) { if (method_exists($this, ($_o8jiroj5s0g8o94osj3p8td51u = "\x75\156\163\x65\164\137".$_06ymt4cf551mh4uvn8mwkv3o36))) { $this->$_o8jiroj5s0g8o94osj3p8td51u(); } } } class LineStyle implements ArrayAccess { public function __construct(LineLayer $_0wv1cltbp5gb2mr2 = null) { $this->_I6b4b2d8h8pdo183udret7hjhr = array(); if (isset($_0wv1cltbp5gb2mr2)) { $this->_I6b4b2d8h8pdo183udret7hjhr[] = $_0wv1cltbp5gb2mr2; } } private $_I6b4b2d8h8pdo183udret7hjhr; public function offsetSet($_1mgi9fu2s8gpmqde2ts06eax55, $_Ilztfbzcnfneodcym3c3t) { if (is_null($_1mgi9fu2s8gpmqde2ts06eax55)) { $this->_I6b4b2d8h8pdo183udret7hjhr[] = $_Ilztfbzcnfneodcym3c3t; } else { $this->_I6b4b2d8h8pdo183udret7hjhr[$_1mgi9fu2s8gpmqde2ts06eax55] = $_Ilztfbzcnfneodcym3c3t; } } public function offsetExists($_Ospwexp98sb7tdeqf2r5y) { return isset($this->_I6b4b2d8h8pdo183udret7hjhr[$_Ospwexp98sb7tdeqf2r5y]); } public function offsetUnset($_of21xymqxa9d22hek4svg41y6b) { unset($this->_I6b4b2d8h8pdo183udret7hjhr[$_of21xymqxa9d22hek4svg41y6b]); } public function offsetGet($_0dwdg1u9n6l2ljrwf2e57) { return isset($this->_I6b4b2d8h8pdo183udret7hjhr[$_0dwdg1u9n6l2ljrwf2e57]) ? $this->_I6b4b2d8h8pdo183udret7hjhr[$_0dwdg1u9n6l2ljrwf2e57] : null; } public function get_LayerCount() { return count($this->_I6b4b2d8h8pdo183udret7hjhr); } public function get_Thickness() { $_0fqe5k76bsop3riymuahxsawvh = 0; foreach ($this->_I6b4b2d8h8pdo183udret7hjhr as $_02nn7e8msnqbs21g => $_itgvyzedy2jog0g9b2dzqpkjjn) { $_0fqe5k76bsop3riymuahxsawvh += $_itgvyzedy2jog0g9b2dzqpkjjn->Thickness; } return $_0fqe5k76bsop3riymuahxsawvh; } public static function Single(LineLayer $_ijxs81lz3eg7b2ui4mi26) { return new LineStyle($_ijxs81lz3eg7b2ui4mi26); } public static function Double(LineLayer $_o9j9pwpzw66g5nkt, LineLayer $_Iko2yj876d5atj5mdhlmigkdsj) { $_lxnxmfr9mlrxi3g0qtssy = new LineStyle(); $_lxnxmfr9mlrxi3g0qtssy[] = $_o9j9pwpzw66g5nkt; $_lxnxmfr9mlrxi3g0qtssy[] = $_Iko2yj876d5atj5mdhlmigkdsj; return $_lxnxmfr9mlrxi3g0qtssy; } public static function Triple(LineLayer $_1ljq4t8f9uz93eiyie410, LineLayer $_Ipkvretxkltn3m2o, LineLayer $_Ishbbihrey2mhkggckqvf4z2j2) { $_Itg9no9b49byhtmn = new LineStyle(); $_Itg9no9b49byhtmn[] = $_1ljq4t8f9uz93eiyie410; $_Itg9no9b49byhtmn[] = $_Ipkvretxkltn3m2o; $_Itg9no9b49byhtmn[] = $_Ishbbihrey2mhkggckqvf4z2j2; return $_Itg9no9b49byhtmn; } public static function HasValue($_invcodz2ha7ej0q8wvchdmu87k) { if (is_null($_invcodz2ha7ej0q8wvchdmu87k)) { return false; } if (0 == $_invcodz2ha7ej0q8wvchdmu87k->LayerCount) { return false; } if (0 == $_invcodz2ha7ej0q8wvchdmu87k[0]->Thickness) { return false; } if (is_null($_invcodz2ha7ej0q8wvchdmu87k[0][0])) { return false; } if (is_null($_invcodz2ha7ej0q8wvchdmu87k[0][0]->Color)) { return false; } return true; } public function __get($_l3q4pfoshgmgjl1y8qyyxv2ngf) { if (method_exists($this, ($_ly1k4ehse9dup9rx = "\147\145\x74\137".$_l3q4pfoshgmgjl1y8qyyxv2ngf))) { return $this->$_ly1k4ehse9dup9rx(); } else return; } public function __isset($_iyncvm2559z1fs1ultdh6) { if (method_exists($this, ($_oa73rrfuqfno2wgxbm2wj = "\151\163\163\145\x74\x5f".$_iyncvm2559z1fs1ultdh6))) { return $this->$_oa73rrfuqfno2wgxbm2wj(); } else return; } public function __set($_ii06vd3ow7m93vak7le9h5su5t, $_13pneh5wr73ja1eepemooveebf) { if (method_exists($this, ($_ivrw3fto6x8qa36d1amu7sj5ia = "\x73\x65\164\x5f".$_ii06vd3ow7m93vak7le9h5su5t))) { $this->$_ivrw3fto6x8qa36d1amu7sj5ia($_13pneh5wr73ja1eepemooveebf); } } public function __unset($_Iuxzmsblrp9isbdpcvcc6) { if (method_exists($this, ($_Oi7sylgvg87t1hcg3ay2r = "\x75\156\163\x65\x74\137".$_Iuxzmsblrp9isbdpcvcc6))) { $this->$_Oi7sylgvg87t1hcg3ay2r(); } } } final class FontCase extends Enum { private function __construct() {} public static $Names; const Uppercase = 0; const Lowercase = 1; const Random = 2; public static function GetName($_ouzt9581fdvikqzb) { if (!is_int($_ouzt9581fdvikqzb)) { throw new Exception("\125\156\153\156\x6f\167\156\40\x65\156\165\155\x65\162\141\x74\x65\144\40\166\x61\154\165\x65\x3a\40".$_ouzt9581fdvikqzb); } if (array_key_exists($_ouzt9581fdvikqzb, FontCase::$Names)) { return FontCase::$Names[$_ouzt9581fdvikqzb]; } else { throw new Exception("\125\x6e\153\x6e\157\x77\156\x20\145\x6e\165\155\x65\x72\141\x74\x65\x64\x20\166\141\x6c\x75\x65\x3a\40".$_ouzt9581fdvikqzb); } } public static function GetValue($_0kzcs1h9g67aautpitjv6) { if (!StringHelper::HasValue($_0kzcs1h9g67aautpitjv6)) { throw new Exception("\125\156\153\x6e\157\167\x6e\40\x65\x6e\165\155\145\x72\x61\164\x65\144\x20\156\x61\155\145\x3a\40".$_0kzcs1h9g67aautpitjv6); } $_i41ycoc9tuhdnsqq = CollectionHelper::StringArraySearch($_0kzcs1h9g67aautpitjv6, FontCase::$Names); if (false !== $_i41ycoc9tuhdnsqq) { return $_i41ycoc9tuhdnsqq; } else { throw new Exception("\125\156\x6b\156\157\167\156\x20\x65\156\165\x6d\145\x72\141\x74\145\x64\x20\x6e\141\x6d\145\72\x20".$_0kzcs1h9g67aautpitjv6); } } public static function TryGetName($_iatsbq3xzmfxkyjxovpsbiyf0z) { if (!is_int($_iatsbq3xzmfxkyjxovpsbiyf0z)) { return; } if (array_key_exists($_iatsbq3xzmfxkyjxovpsbiyf0z, FontCase::$Names)) { return FontCase::$Names[$_iatsbq3xzmfxkyjxovpsbiyf0z]; } else { return; } } public static function TryGetValue($_oqhgumbxfcc19qpz) { if (!StringHelper::HasValue($_oqhgumbxfcc19qpz)) { return; } $_Iiw19diwe9unxxb6b97hhizgq3 = CollectionHelper::StringArraySearch($_oqhgumbxfcc19qpz, FontCase::$Names); if (false !== $_Iiw19diwe9unxxb6b97hhizgq3) { return $_Iiw19diwe9unxxb6b97hhizgq3; } else { return; } } } FontCase::$Names = array( FontCase::Uppercase => "\125\x70\x70\x65\162\143\x61\163\145", FontCase::Lowercase => "\114\157\x77\145\162\143\x61\163\x65", FontCase::Random => "\x52\141\156\x64\157\155" ); final class FontWeight extends Enum { private function __construct() {} public static $Names; const Normal = 0; const Bold = 1; const Random = 2; public static function GetName($_Ijicn6egoeow6l4zkkp4x) { if (!is_int($_Ijicn6egoeow6l4zkkp4x)) { throw new Exception("\125\156\153\156\157\167\x6e\40\145\x6e\x75\155\145\162\141\164\145\x64\x20\x76\x61\154\x75\x65\72\x20".$_Ijicn6egoeow6l4zkkp4x); } if (array_key_exists($_Ijicn6egoeow6l4zkkp4x, FontWeight::$Names)) { return FontWeight::$Names[$_Ijicn6egoeow6l4zkkp4x]; } else { throw new Exception("\125\x6e\153\156\x6f\x77\x6e\x20\145\156\x75\x6d\x65\162\141\x74\x65\144\40\166\x61\154\x75\145\72\x20".$_Ijicn6egoeow6l4zkkp4x); } } public static function GetValue($_lual8yvckyx8e4hx) { if (!StringHelper::HasValue($_lual8yvckyx8e4hx)) { throw new Exception("\125\156\x6b\156\x6f\x77\x6e\40\145\156\165\155\145\x72\141\164\145\144\x20\x6e\141\x6d\x65\72\40".$_lual8yvckyx8e4hx); } $_i90iqyxwzllcy7mdbd5ay = CollectionHelper::StringArraySearch($_lual8yvckyx8e4hx, FontWeight::$Names); if (false !== $_i90iqyxwzllcy7mdbd5ay) { return $_i90iqyxwzllcy7mdbd5ay; } else { throw new Exception("\x55\156\x6b\x6e\x6f\167\x6e\x20\x65\156\165\155\x65\162\x61\164\145\144\40\x6e\x61\155\x65\72\x20".$_lual8yvckyx8e4hx); } } public static function TryGetName($_Or7f6pji890qr3cr8yv39) { if (!is_int($_Or7f6pji890qr3cr8yv39)) { return; } if (array_key_exists($_Or7f6pji890qr3cr8yv39, FontWeight::$Names)) { return FontWeight::$Names[$_Or7f6pji890qr3cr8yv39]; } else { return; } } public static function TryGetValue($_la1wjezntfmremozn84tkozmd7) { if (!StringHelper::HasValue($_la1wjezntfmremozn84tkozmd7)) { return; } $_1kaeuoq40kendeaopuymn = CollectionHelper::StringArraySearch($_la1wjezntfmremozn84tkozmd7, FontWeight::$Names); if (false !== $_1kaeuoq40kendeaopuymn) { return $_1kaeuoq40kendeaopuymn; } else { return; } } } FontWeight::$Names = array( FontWeight::Normal => "\116\157\162\x6d\x61\154", FontWeight::Bold => "\102\157\x6c\144", FontWeight::Random => "\x52\141\x6e\x64\x6f\x6d" ); final class FontType extends Enum { private function __construct() {} public static $Names; const Serif = 0; const Sans = 1; const Mono = 2; public static function GetName($_0qdhojo59qlm38vu7e7ns) { if (!is_int($_0qdhojo59qlm38vu7e7ns)) { throw new Exception("\125\156\x6b\x6e\x6f\x77\156\x20\x65\156\x75\x6d\145\x72\141\164\145\144\x20\166\141\154\x75\145\x3a\x20".$_0qdhojo59qlm38vu7e7ns); } if (array_key_exists($_0qdhojo59qlm38vu7e7ns, FontType::$Names)) { return FontType::$Names[$_0qdhojo59qlm38vu7e7ns]; } else { throw new Exception("\125\x6e\153\x6e\x6f\x77\156\x20\145\156\x75\x6d\145\x72\141\164\145\144\x20\166\141\154\x75\x65\x3a\x20".$_0qdhojo59qlm38vu7e7ns); } } public static function GetValue($_Oo4mzkxxrb9468h4xloyf) { if (!StringHelper::HasValue($_Oo4mzkxxrb9468h4xloyf)) { throw new Exception("\x55\156\153\x6e\x6f\167\156\40\x65\156\165\155\145\162\141\164\145\144\40\156\x61\x6d\x65\72\x20".$_Oo4mzkxxrb9468h4xloyf); } $_Idq9wxo9whboluy9k6tju = CollectionHelper::StringArraySearch($_Oo4mzkxxrb9468h4xloyf, FontType::$Names); if (false !== $_Idq9wxo9whboluy9k6tju) { return $_Idq9wxo9whboluy9k6tju; } else { throw new Exception("\125\x6e\153\156\x6f\167\156\x20\x65\x6e\x75\x6d\145\x72\x61\164\145\144\x20\156\141\x6d\145\72\x20".$_Oo4mzkxxrb9468h4xloyf); } } public static function TryGetName($_O6zn20t9gowy8w0pv6t93) { if (!is_int($_O6zn20t9gowy8w0pv6t93)) { return; } if (array_key_exists($_O6zn20t9gowy8w0pv6t93, FontType::$Names)) { return FontType::$Names[$_O6zn20t9gowy8w0pv6t93]; } else { return; } } public static function TryGetValue($_Ixzd45sn7qjj86zm2xhd6) { if (!StringHelper::HasValue($_Ixzd45sn7qjj86zm2xhd6)) { return; } $_16at4t6idpx8691s = CollectionHelper::StringArraySearch($_Ixzd45sn7qjj86zm2xhd6, FontType::$Names); if (false !== $_16at4t6idpx8691s) { return $_16at4t6idpx8691s; } else { return; } } } FontType::$Names = array( FontType::Serif => "\x53\145\x72\x69\146", FontType::Sans => "\x53\141\x6e\163", FontType::Mono => "\115\157\x6e\x6f" ); class Font { public function __construct() { } public static function From($_Iatdhw2fb6ca5zpy8v53e9dhox, $_l9v0qrq9mfxw6ajf, $_idcs1abe2chsuv0ok0sz8) { $_o8s7k3d6vurh9b4f = new Font(); $_o8s7k3d6vurh9b4f->FontType = $_Iatdhw2fb6ca5zpy8v53e9dhox; $_o8s7k3d6vurh9b4f->FontCase = $_idcs1abe2chsuv0ok0sz8; $_o8s7k3d6vurh9b4f->FontWeight = $_l9v0qrq9mfxw6ajf; return $_o8s7k3d6vurh9b4f; } private $_Ibylydp0wros02gxwv2uw6om54; public function get_FontType() { return $this->_Ibylydp0wros02gxwv2uw6om54; } public function set_FontType($_o8d3ipumlallnwox) { $this->_Ibylydp0wros02gxwv2uw6om54 = $_o8d3ipumlallnwox; } private $_liwisiyvnu1v6xxo6yg4s; public function get_FontWeight() { return $this->_liwisiyvnu1v6xxo6yg4s; } public function set_FontWeight($_izk8bficde5do8t1vqkx41al32) { $this->_liwisiyvnu1v6xxo6yg4s = $_izk8bficde5do8t1vqkx41al32; } private $_ot4upjk9lq5da9dg; public function get_FontCase() { return $this->_ot4upjk9lq5da9dg; } public function set_FontCase($_0msn9gmfo43wu4caymuk3985a2) { $this->_ot4upjk9lq5da9dg = $_0msn9gmfo43wu4caymuk3985a2; } public function __get($_1rfubj6vbrmq38swu3r9w3uzz5) { if (method_exists($this, ($_174fk0f4r4cmmvpcf1l7yteivp = "\147\x65\164\x5f".$_1rfubj6vbrmq38swu3r9w3uzz5))) { return $this->$_174fk0f4r4cmmvpcf1l7yteivp(); } else return; } public function __isset($_196erymicfnlfj5z2l1y0) { if (method_exists($this, ($_1q0a0hbaz5v7nys9 = "\151\x73\163\145\164\x5f".$_196erymicfnlfj5z2l1y0))) { return $this->$_1q0a0hbaz5v7nys9(); } else return; } public function __set($_Ipetc24enf8d378in3zew, $_ous6i5idm9mjsz8qq6y2z) { if (method_exists($this, ($_i4ocoq2hw1iw10mdnhb1t = "\163\x65\164\137".$_Ipetc24enf8d378in3zew))) { $this->$_i4ocoq2hw1iw10mdnhb1t($_ous6i5idm9mjsz8qq6y2z); } } public function __unset($_O6jab965s74djrthtfyub) { if (method_exists($this, ($_Oq67qaz568ttzriz = "\x75\156\x73\145\164\x5f".$_O6jab965s74djrthtfyub))) { $this->$_Oq67qaz568ttzriz(); } } } class FontCollection implements ArrayAccess { public function __construct() { $this->_Ixr8agsqacmzq8xsonyvzd9fch = array(); $this->_0sw2o2vkvkw8fqlyea206xrjro = 0 ; } private $_Ixr8agsqacmzq8xsonyvzd9fch; public function offsetSet($_Orvaacqslhgmxdhf95i93p70x5, $_llm65y56qgseiphz) { if (is_null($_Orvaacqslhgmxdhf95i93p70x5)) { $this->_Ixr8agsqacmzq8xsonyvzd9fch[] = $_llm65y56qgseiphz; } else { $this->_Ixr8agsqacmzq8xsonyvzd9fch[$_Orvaacqslhgmxdhf95i93p70x5] = $_llm65y56qgseiphz; } } public function offsetExists($_ljrz5dozjbkspmnzsi8mdffrpa) { return isset($this->_Ixr8agsqacmzq8xsonyvzd9fch[$_ljrz5dozjbkspmnzsi8mdffrpa]); } public function offsetUnset($_1rggmo4cx5guwlf7) { unset($this->_Ixr8agsqacmzq8xsonyvzd9fch[$_1rggmo4cx5guwlf7]); } public function offsetGet($_l9ar259ul8orgu8y) { return isset($this->_Ixr8agsqacmzq8xsonyvzd9fch[$_l9ar259ul8orgu8y]) ? $this->_Ixr8agsqacmzq8xsonyvzd9fch[$_l9ar259ul8orgu8y] : null; } private $_0sw2o2vkvkw8fqlyea206xrjro; public function get_RandomizationStyle() { return $this->_0sw2o2vkvkw8fqlyea206xrjro; } public function set_RandomizationStyle($_O4903fr9xtdlp10e5e4ybjqge5) { $this->_0sw2o2vkvkw8fqlyea206xrjro = $_O4903fr9xtdlp10e5e4ybjqge5; } public function get_Next() { if (is_null($this->_Ixr8agsqacmzq8xsonyvzd9fch) || 0 == count($this->_Ixr8agsqacmzq8xsonyvzd9fch)) { return null; } $_Igas26mvvux7xdrpalrl5 = RandomizationHelper::RandomFromValues($this->_Ixr8agsqacmzq8xsonyvzd9fch); if (1 == $this->_0sw2o2vkvkw8fqlyea206xrjro) { $this->_Ixr8agsqacmzq8xsonyvzd9fch = array(); $this->_Ixr8agsqacmzq8xsonyvzd9fch[] = $_Igas26mvvux7xdrpalrl5; } return $_Igas26mvvux7xdrpalrl5; } public function __get($_0pp8ghtvadvfh0m4z1x03) { if (method_exists($this, ($_0jtjbicvgmebl3trvjifw = "\147\x65\164\x5f".$_0pp8ghtvadvfh0m4z1x03))) { return $this->$_0jtjbicvgmebl3trvjifw(); } else return; } public function __isset($_Iqlp15iikxlurl08) { if (method_exists($this, ($_id6frosq0r2cy7mf7bqi1 = "\x69\163\x73\x65\x74\137".$_Iqlp15iikxlurl08))) { return $this->$_id6frosq0r2cy7mf7bqi1(); } else return; } public function __set($_I3hhdvftbdcnfru2, $_Iz03z174owbefixswpmwgdtbnk) { if (method_exists($this, ($_i84ij0dsqw6usm9swy0gzz2u68 = "\163\145\x74\137".$_I3hhdvftbdcnfru2))) { $this->$_i84ij0dsqw6usm9swy0gzz2u68($_Iz03z174owbefixswpmwgdtbnk); } } public function __unset($_i2dxac7h3jxb9o7o) { if (method_exists($this, ($_Ow9kiupfdfio76mxo4ld8bqg5i = "\x75\156\x73\145\164\137".$_i2dxac7h3jxb9o7o))) { $this->$_Ow9kiupfdfio76mxo4ld8bqg5i(); } } } abstract class AtomicShape { private $_ocy697chpfiq7pl1zb9rt; public function get_Outline() { return $this->_ocy697chpfiq7pl1zb9rt; } public function set_Outline($_0e92j1hcu6otkvt2frhiq) { $this->_ocy697chpfiq7pl1zb9rt = $_0e92j1hcu6otkvt2frhiq; } private $_1508ngo0etooq7p62pg1ovcgsk; public function get_FillColor() { return $this->_1508ngo0etooq7p62pg1ovcgsk; } public function set_FillColor($_I2fwboa2fm9d4uyx5jxgxdbtp3) { $this->_1508ngo0etooq7p62pg1ovcgsk = $_I2fwboa2fm9d4uyx5jxgxdbtp3; } private $_iyatfc5hz20xpywol7tvwo7i5b; public function get_Transform() { return $this->_iyatfc5hz20xpywol7tvwo7i5b; } public function set_Transform($_O1y339d5nnzlv12wf7tga) { $this->_iyatfc5hz20xpywol7tvwo7i5b = $_O1y339d5nnzlv12wf7tga; } public abstract function get_Surface(); protected $m_Graphics; public function Draw(GDGraphics $_la2br5mvfjnbnm6dq1yk1udtmx) { $this->m_Graphics = $_la2br5mvfjnbnm6dq1yk1udtmx; $_05nkos9gvsll9o25 = isset($this->_ocy697chpfiq7pl1zb9rt); $_lfibtlon2p9vhzs0 = isset($this->_1508ngo0etooq7p62pg1ovcgsk); if (!$_05nkos9gvsll9o25 && !$_lfibtlon2p9vhzs0) { return; } $this->PreProcess(); if ($_lfibtlon2p9vhzs0) { $this->DrawBody(); } if ($_05nkos9gvsll9o25) { $this->DrawOutline(); } $this->PostProcess(); } public abstract function PreProcess(); public abstract function DrawBody(); public abstract function DrawOutline(); public function PostProcess() { } public function __get($_1riic1saqo6bxnbrhu7fr) { if (method_exists($this, ($_oibial734gedxackcvqmxlalzg = "\147\x65\164\x5f".$_1riic1saqo6bxnbrhu7fr))) { return $this->$_oibial734gedxackcvqmxlalzg(); } else return; } public function __isset($_ob425v5p2htzxes2) { if (method_exists($this, ($_1qwqzxs4k8dee41vin2v3gxxeg = "\151\163\163\x65\164\x5f".$_ob425v5p2htzxes2))) { return $this->$_1qwqzxs4k8dee41vin2v3gxxeg(); } else return; } public function __set($_lezfpz2cwsseakam, $_lpzvr1yszo8ea509oh661fmeft) { if (method_exists($this, ($_ogrmpqa5vea89gbv2yhk2 = "\163\x65\x74\x5f".$_lezfpz2cwsseakam))) { $this->$_ogrmpqa5vea89gbv2yhk2($_lpzvr1yszo8ea509oh661fmeft); } } public function __unset($_itsh21v7st8vrodvwy82k) { if (method_exists($this, ($_Ohodhdrdd1cygvhvit2oknifn0 = "\x75\156\163\145\164\x5f".$_itsh21v7st8vrodvwy82k))) { $this->$_Ohodhdrdd1cygvhvit2oknifn0(); } } } abstract class ShapeCollection implements ArrayAccess { protected $m_Prototype; private $_1pz7dq43t185p8nnsgc12; public function get_Bounds() { return $this->_1pz7dq43t185p8nnsgc12; } public function set_Bounds(Rectangle $_izcd4xl8n28x3lne) { $this->_1pz7dq43t185p8nnsgc12 = $_izcd4xl8n28x3lne; } public function get_Surface() { $_laqvj6c8x58uu06r29nd7 = 0; foreach ($_l92ec7tgmga3pdj9 as $_Ifwt0q4dsiwya8kzgk915 => $_lxyioea6eoio1h0pzquyn) { $_laqvj6c8x58uu06r29nd7 += $_lxyioea6eoio1h0pzquyn->Surface; } return $_laqvj6c8x58uu06r29nd7; } public function Add(AtomicShape $_odsr62mnkgyf45u8o5pb5f7utj) { $this->_119ceq81w3yvf1xjnyoqtkjb9h[] = $_odsr62mnkgyf45u8o5pb5f7utj; } public function Draw(GDGraphics $_09uk9313b9c7v9b1) { $_Ihpxnhjpkmcnxk6e = $this->Bounds; if (is_null($_Ihpxnhjpkmcnxk6e)) { $_Ihpxnhjpkmcnxk6e = $_09uk9313b9c7v9b1->GetBounds(); } $this->DrawWithinBounds($_09uk9313b9c7v9b1, $_Ihpxnhjpkmcnxk6e); } public abstract function DrawWithinBounds(GDGraphics $_Oxs7413kxuo1btkrsd5ckedf7h, Rectangle $_1flvih57p164bswykgpy9hc9ae); public function DrawWithinClip(GDGraphics $_i4rdpji6tczzqduibfmse, ShapeCollection $_Imxxa4cpu0l1pxghd33er) { } private $_119ceq81w3yvf1xjnyoqtkjb9h; public function offsetSet($_Ilcch9yrx4ghk7ny48uip, $_Oy3e7pavere74gcg) { if (is_null($_Ilcch9yrx4ghk7ny48uip)) { $this->_119ceq81w3yvf1xjnyoqtkjb9h[] = $_Oy3e7pavere74gcg; } else { $this->_119ceq81w3yvf1xjnyoqtkjb9h[$_Ilcch9yrx4ghk7ny48uip] = $_Oy3e7pavere74gcg; } } public function offsetExists($_Iwb30j5iuf781hxbly8yy9vgyh) { return isset($this->_119ceq81w3yvf1xjnyoqtkjb9h[$_Iwb30j5iuf781hxbly8yy9vgyh]); } public function offsetUnset($_l6062v7a7b02w3encqgsdj4tfz) { unset($this->_119ceq81w3yvf1xjnyoqtkjb9h[$_l6062v7a7b02w3encqgsdj4tfz]); } public function offsetGet($_ix4kj1rjov7mmao0) { return isset($this->_119ceq81w3yvf1xjnyoqtkjb9h[$_ix4kj1rjov7mmao0]) ? $this->_119ceq81w3yvf1xjnyoqtkjb9h[$_ix4kj1rjov7mmao0] : null; } public function __get($_onllpasi8x1y6ngurs4b1w3nzb) { if (method_exists($this, ($_Opwowp75flvco1ypjte0e = "\x67\x65\164\x5f".$_onllpasi8x1y6ngurs4b1w3nzb))) { return $this->$_Opwowp75flvco1ypjte0e(); } else return; } public function __isset($_O40rvig684iff5c7orrjg) { if (method_exists($this, ($_1dtszmf0a4zc2ifkmv6y8 = "\x69\x73\x73\x65\x74\x5f".$_O40rvig684iff5c7orrjg))) { return $this->$_1dtszmf0a4zc2ifkmv6y8(); } else return; } public function __set($_O6m2mffbj75btta1q1nivlyp4o, $_llcpqwtatipolwmb) { if (method_exists($this, ($_0p76v1586l66ko0e = "\163\145\164\x5f".$_O6m2mffbj75btta1q1nivlyp4o))) { $this->$_0p76v1586l66ko0e($_llcpqwtatipolwmb); } } public function __unset($_13gl6xez0fnq11el14ods) { if (method_exists($this, ($_1j990vpi6cndabfxryrtm8rcko = "\x75\x6e\x73\145\164\137".$_13gl6xez0fnq11el14ods))) { $this->$_1j990vpi6cndabfxryrtm8rcko(); } } } abstract class RandomNoise extends ShapeCollection { const DefaultSurfacePercentage = 50; protected $m_surfacePercentageRange; public function get_SurfacePercentageRange() { return $this->m_surfacePercentageRange; } public function set_SurfacePercentageRange($_i245e9h1f1zwqrc55z7rq) { $this->m_surfacePercentageRange = $_i245e9h1f1zwqrc55z7rq; } public function get_SurfacePercentage() { if (null == $this->m_surfacePercentageRange) { return self::DefaultSurfacePercentage; } return $this->m_surfacePercentageRange->get_Next(); } public function set_SurfacePercentage($_Iy2rq08cq0m9l3m3ksx1w4bzif) { if (0 >= $_Iy2rq08cq0m9l3m3ksx1w4bzif || 1001 <= $_Iy2rq08cq0m9l3m3ksx1w4bzif) { throw new Exception("\123\165\x72\x66\141\x63\x65\120\145\162\x63\145\156\x74\x61\147\145\x20\x66\157\x72\40\x6e\x6f\151\x73\x65\x73\x20\155\x75\163\164\40\x62\145\x20\142\x65\x74\x77\145\145\156\40\61\40\141\156\144\x20\x31\x30\60\x30", $_Iy2rq08cq0m9l3m3ksx1w4bzif); } $this->m_surfacePercentageRange = new RandomRange($_Iy2rq08cq0m9l3m3ksx1w4bzif); } public function get_SurfaceFactor() { return ($this->get_SurfacePercentage() / 100.00); } public abstract function DrawSingleRandomShape(IGraphics $_ov45sd1elr5fahosugww0, Rectangle $_0h157mb2ffmoti26); public function DrawWithinBounds(GDGraphics $_1knp54prng1k2xao, Rectangle $_o1ee0ktzj5w7vpqh3jbml) { $_o5u1aq5dcmuz7tgc = (int) round($this->SurfaceFactor * $_o1ee0ktzj5w7vpqh3jbml->Surface); $_l1jvse4kd3i1w0y5h2dzh6wn2u = 0; while ($_l1jvse4kd3i1w0y5h2dzh6wn2u < $_o5u1aq5dcmuz7tgc) { $_l1jvse4kd3i1w0y5h2dzh6wn2u += $this->DrawSingleRandomShape($_1knp54prng1k2xao, $_o1ee0ktzj5w7vpqh3jbml); } } } class Point extends AtomicShape { public function __construct() { if (0 != func_num_args()) { throw new Exception("\x55\163\145\x20\163\x74\141\164\x69\143\40\x63\x6f\156\x73\164\x72\165\x63\x74\x69\157\156\40\150\x65\154\x70\145\162\163\40\141\x76\141\151\x6c\141\x62\154\x65\x20\x62\x65\x6c\157\x77\x20\151\156\163\x74\x65\141\144"); } } public static function At($_o5jglhaj61h3ujg6f0oc0nyk3d, $_1zpuyblzhkjbgxfw) { $_ostbxp5o401ar16mz6o2n = new Point(); $_ostbxp5o401ar16mz6o2n->X = $_o5jglhaj61h3ujg6f0oc0nyk3d; $_ostbxp5o401ar16mz6o2n->Y = $_1zpuyblzhkjbgxfw; return $_ostbxp5o401ar16mz6o2n; } public static function BetweenPoints($_Oegxj8ezsgoz6h6fudaiu, $_Ovhgsme5329pjpyzr7ba5) { $_inyu67rgrgvy2d7u18grx = new Point(); $_inyu67rgrgvy2d7u18grx->_okjzofru9fru8w7lzcluz = new RandomRange($_Oegxj8ezsgoz6h6fudaiu->X, $_Ovhgsme5329pjpyzr7ba5->X); $_inyu67rgrgvy2d7u18grx->_o5l5ovgc17cyi9bnaf8in = new RandomRange($_Oegxj8ezsgoz6h6fudaiu->Y, $_Ovhgsme5329pjpyzr7ba5->Y); return $_inyu67rgrgvy2d7u18grx; } public static function BetweenAt($_Ifqmhtxt8j6g274