コード例 #1
0
 public function DrawFast(LBD_GDGraphics $_icvadyh9ljrq15th6ib6ngk778, LBD_Rectangle $_Ik166ocw6xhlekn84siez194gs)
 {
     $_Idouj8ty4g1tvyi0xy6iy = $_icvadyh9ljrq15th6ib6ngk778->GetGDImage();
     $_I71o8iao4hug55no = $_Ik166ocw6xhlekn84siez194gs->get_Width();
     $_1nb8euh0488ik9128uunt = $_Ik166ocw6xhlekn84siez194gs->get_TopLeft()->get_Y();
     $_o67s60n212tr9ouey5zzr = $_Ik166ocw6xhlekn84siez194gs->get_BottomRight()->get_Y();
     $_Igmc0ypo5432uuox = LBD_RandomizationHelper::RandomFromRange(0, $this->get_SpacingRange()->get_Min());
     $_i5v1nnc5x1cvf2i2u118lriumr = $this->_1393cccghadd4knk->get_IsRandomized();
     $_i3fa3ecdilk3ge96 = $this->get_Spacing();
     $_ocgahtlnn0zg79yr = $this->get_Prototype()->get_Outline();
     $_lfhwbete8c46vi4lg7k9z = $_ocgahtlnn0zg79yr->get_LayerCount();
     $_ix7xl5feu5wkgn8zdy1mvmvw9l = false;
     for ($_izv1ydgrl7xaivhc = 0; $_izv1ydgrl7xaivhc < $_lfhwbete8c46vi4lg7k9z; $_izv1ydgrl7xaivhc++) {
         $_1ng89l8mcjpf78flkifsh = $_ocgahtlnn0zg79yr[$_izv1ydgrl7xaivhc];
         $_ix7xl5feu5wkgn8zdy1mvmvw9l = $_1ng89l8mcjpf78flkifsh[0]->get_Color()->get_IsRandomized();
         if ($_ix7xl5feu5wkgn8zdy1mvmvw9l) {
             break;
         }
     }
     if (!$_ix7xl5feu5wkgn8zdy1mvmvw9l) {
         $_1d69sbu6ns2swbgirsff7yoyup = array();
         for ($_izv1ydgrl7xaivhc = 0; $_izv1ydgrl7xaivhc < $_lfhwbete8c46vi4lg7k9z; $_izv1ydgrl7xaivhc++) {
             $_1ng89l8mcjpf78flkifsh = $_ocgahtlnn0zg79yr[$_izv1ydgrl7xaivhc];
             $_1d69sbu6ns2swbgirsff7yoyup[$_izv1ydgrl7xaivhc] = array();
             $_1d69sbu6ns2swbgirsff7yoyup[$_izv1ydgrl7xaivhc][0] = $_1ng89l8mcjpf78flkifsh->get_Thickness();
             $_Iax45c5sgdovft2f = $_1ng89l8mcjpf78flkifsh[0]->get_Color();
             $_Iyq3m59w8myzwsnx = imagecolorallocate($_Idouj8ty4g1tvyi0xy6iy, $_Iax45c5sgdovft2f->get_R(), $_Iax45c5sgdovft2f->get_G(), $_Iax45c5sgdovft2f->get_B());
             $_1d69sbu6ns2swbgirsff7yoyup[$_izv1ydgrl7xaivhc][1] = $_Iyq3m59w8myzwsnx;
         }
     }
     $_0tzf3tlpqeq194rp = false;
     $_ikjrk7u9zg0lf0ve = $this->get_Prototype()->get_Transform()->get_Rotation();
     if (!is_null($_ikjrk7u9zg0lf0ve->get_AngleRange())) {
         $_0tzf3tlpqeq194rp = true;
     }
     while ($_Igmc0ypo5432uuox < $_I71o8iao4hug55no) {
         $_i146pxl8kir3f2ebmgq2x2gkcw = $_Igmc0ypo5432uuox;
         $_if6rxt1d3fv4ppt6ry0is = $_1nb8euh0488ik9128uunt;
         $_O3o8s7wque6n7y6tyfwrx = $_Igmc0ypo5432uuox;
         $_iihocwzb1hvha8lo = $_o67s60n212tr9ouey5zzr;
         if ($_0tzf3tlpqeq194rp) {
             $_l58rztyj6muxvng2 = $_ikjrk7u9zg0lf0ve->get_Angle();
             $_Owhlygfzekc4fgfx = LBD_Line::RotateLine($_i146pxl8kir3f2ebmgq2x2gkcw, $_if6rxt1d3fv4ppt6ry0is, $_O3o8s7wque6n7y6tyfwrx, $_iihocwzb1hvha8lo, $_l58rztyj6muxvng2);
             $_i146pxl8kir3f2ebmgq2x2gkcw = $_Owhlygfzekc4fgfx[0];
             $_if6rxt1d3fv4ppt6ry0is = $_Owhlygfzekc4fgfx[1];
             $_O3o8s7wque6n7y6tyfwrx = $_Owhlygfzekc4fgfx[2];
             $_iihocwzb1hvha8lo = $_Owhlygfzekc4fgfx[3];
         }
         $_o7lcuweeazqonozt = 0;
         $_l30q9l9gzw5g72xkfcqis = $_O3o8s7wque6n7y6tyfwrx - $_i146pxl8kir3f2ebmgq2x2gkcw;
         $_l7i84n7sz095zzc7 = $_iihocwzb1hvha8lo - $_if6rxt1d3fv4ppt6ry0is;
         $_o4coyhtaka7u9te0e0uc8 = -1;
         $_0h0i2tkra7nv79y84tkv8ud1qn = 1;
         if (0 == $_l30q9l9gzw5g72xkfcqis) {
             $_0h0i2tkra7nv79y84tkv8ud1qn = 0;
         } else {
             if (0 == $_l7i84n7sz095zzc7) {
                 $_o4coyhtaka7u9te0e0uc8 = 0;
             } else {
                 $_o7lcuweeazqonozt = atan2($_l30q9l9gzw5g72xkfcqis, $_l7i84n7sz095zzc7);
                 $_o4coyhtaka7u9te0e0uc8 *= cos($_o7lcuweeazqonozt);
                 $_0h0i2tkra7nv79y84tkv8ud1qn *= sin($_o7lcuweeazqonozt);
             }
         }
         $_0cqpxq5e69ydv40ghclk6mkx1u = 0;
         for ($_izv1ydgrl7xaivhc = 0; $_izv1ydgrl7xaivhc < $_lfhwbete8c46vi4lg7k9z; $_izv1ydgrl7xaivhc++) {
             $_1ng89l8mcjpf78flkifsh = $_ocgahtlnn0zg79yr[$_izv1ydgrl7xaivhc];
             if ($_ix7xl5feu5wkgn8zdy1mvmvw9l) {
                 $_Iax45c5sgdovft2f = $_1ng89l8mcjpf78flkifsh[0]->get_Color();
                 $_Iyq3m59w8myzwsnx = imagecolorallocate($_Idouj8ty4g1tvyi0xy6iy, $_Iax45c5sgdovft2f->get_R(), $_Iax45c5sgdovft2f->get_G(), $_Iax45c5sgdovft2f->get_B());
                 $_16kpa4b6iw5jjk5zrhewrstr1d = $_1ng89l8mcjpf78flkifsh->get_Thickness();
             } else {
                 $_Iyq3m59w8myzwsnx = $_1d69sbu6ns2swbgirsff7yoyup[$_izv1ydgrl7xaivhc][1];
                 $_16kpa4b6iw5jjk5zrhewrstr1d = $_1d69sbu6ns2swbgirsff7yoyup[$_izv1ydgrl7xaivhc][0];
             }
             $_o4r7t8bidyc7vdff4av8fgmglh = $_o4coyhtaka7u9te0e0uc8 * $_16kpa4b6iw5jjk5zrhewrstr1d;
             $_1jj04n8rrg6grs2f = $_0h0i2tkra7nv79y84tkv8ud1qn * $_16kpa4b6iw5jjk5zrhewrstr1d;
             if ($_16kpa4b6iw5jjk5zrhewrstr1d == 1) {
                 imageline($_Idouj8ty4g1tvyi0xy6iy, $_i146pxl8kir3f2ebmgq2x2gkcw, $_if6rxt1d3fv4ppt6ry0is, $_O3o8s7wque6n7y6tyfwrx, $_iihocwzb1hvha8lo, $_Iyq3m59w8myzwsnx);
             } else {
                 $_0s92gvnogjivrgi9qgq9b = 2 * $_16kpa4b6iw5jjk5zrhewrstr1d + 1;
                 for ($_Iavl4jf1ydp6b7k7x59cz = 0; $_Iavl4jf1ydp6b7k7x59cz < $_0s92gvnogjivrgi9qgq9b; $_Iavl4jf1ydp6b7k7x59cz++) {
                     imageline($_Idouj8ty4g1tvyi0xy6iy, $_i146pxl8kir3f2ebmgq2x2gkcw + $_Iavl4jf1ydp6b7k7x59cz * ($_o4coyhtaka7u9te0e0uc8 / 2.0), $_if6rxt1d3fv4ppt6ry0is + $_Iavl4jf1ydp6b7k7x59cz * ($_0h0i2tkra7nv79y84tkv8ud1qn / 2.0), $_O3o8s7wque6n7y6tyfwrx + $_Iavl4jf1ydp6b7k7x59cz * ($_o4coyhtaka7u9te0e0uc8 / 2.0), $_iihocwzb1hvha8lo + $_Iavl4jf1ydp6b7k7x59cz * ($_0h0i2tkra7nv79y84tkv8ud1qn / 2.0), $_Iyq3m59w8myzwsnx);
                 }
             }
             $_i146pxl8kir3f2ebmgq2x2gkcw += $_o4r7t8bidyc7vdff4av8fgmglh;
             $_if6rxt1d3fv4ppt6ry0is += $_1jj04n8rrg6grs2f;
             $_O3o8s7wque6n7y6tyfwrx += $_o4r7t8bidyc7vdff4av8fgmglh;
             $_iihocwzb1hvha8lo += $_1jj04n8rrg6grs2f;
         }
         if ($_i5v1nnc5x1cvf2i2u118lriumr) {
             $_i3fa3ecdilk3ge96 = $this->get_Spacing();
         }
         $_Igmc0ypo5432uuox += $_i3fa3ecdilk3ge96;
     }
 }
コード例 #2
0
 public function DrawFast(LBD_GDGraphics $_lqxyapexvbamu6xnv2wx4, LBD_Rectangle $_lgdy2zckys7i9tg95t3ovzwrin)
 {
     $_Ois5fjvas1xqso11ktyze = $_lqxyapexvbamu6xnv2wx4->GetGDImage();
     $_Omxhva3wovm3cce3 = $_lgdy2zckys7i9tg95t3ovzwrin->get_Width();
     $_Ii4d435hina42t91xfihbvfnu3 = $_lgdy2zckys7i9tg95t3ovzwrin->get_TopLeft()->get_Y();
     $_lup43cwqxkvfzn5h = $_lgdy2zckys7i9tg95t3ovzwrin->get_BottomRight()->get_Y();
     $_Ohhqoxu3muld1l43qwzl4 = LBD_RandomizationHelper::RandomFromRange(0, $this->get_SpacingRange()->get_Min());
     $_O2sr199r971eqdtvo1dhn = $this->_obzzfntdcu8aqsg5->get_IsRandomized();
     $_0o7w12y3fiwqe0wamh2a0 = $this->get_Spacing();
     $_lq8fi3v1x4ykaywod30dc3ugiq = $this->get_Prototype()->get_Outline();
     $_12sphezmj8rvolou = $_lq8fi3v1x4ykaywod30dc3ugiq->get_LayerCount();
     $_It2j6psb400kicl09o6xv = false;
     for ($_op4sib2rcy8x3cxfonidb = 0; $_op4sib2rcy8x3cxfonidb < $_12sphezmj8rvolou; $_op4sib2rcy8x3cxfonidb++) {
         $_04fkkwf25p8qgp12p507d = $_lq8fi3v1x4ykaywod30dc3ugiq[$_op4sib2rcy8x3cxfonidb];
         $_It2j6psb400kicl09o6xv = $_04fkkwf25p8qgp12p507d[0]->get_Color()->get_IsRandomized();
         if ($_It2j6psb400kicl09o6xv) {
             break;
         }
     }
     if (!$_It2j6psb400kicl09o6xv) {
         $_o98gmo7o3sedsqgz = array();
         for ($_op4sib2rcy8x3cxfonidb = 0; $_op4sib2rcy8x3cxfonidb < $_12sphezmj8rvolou; $_op4sib2rcy8x3cxfonidb++) {
             $_04fkkwf25p8qgp12p507d = $_lq8fi3v1x4ykaywod30dc3ugiq[$_op4sib2rcy8x3cxfonidb];
             $_o98gmo7o3sedsqgz[$_op4sib2rcy8x3cxfonidb] = array();
             $_o98gmo7o3sedsqgz[$_op4sib2rcy8x3cxfonidb][0] = $_04fkkwf25p8qgp12p507d->get_Thickness();
             $_1hc5t74ljtjvbtzf1mee4wmwyb = $_04fkkwf25p8qgp12p507d[0]->get_Color();
             $_03f47dqhh5tipeyegdhf2 = imagecolorallocate($_Ois5fjvas1xqso11ktyze, $_1hc5t74ljtjvbtzf1mee4wmwyb->get_R(), $_1hc5t74ljtjvbtzf1mee4wmwyb->get_G(), $_1hc5t74ljtjvbtzf1mee4wmwyb->get_B());
             $_o98gmo7o3sedsqgz[$_op4sib2rcy8x3cxfonidb][1] = $_03f47dqhh5tipeyegdhf2;
         }
     }
     $_13og6oucqkmjge4p = false;
     $_Ovypz81v4o8nsuad8qqda = $this->get_Prototype()->get_Transform()->get_Rotation();
     if (!is_null($_Ovypz81v4o8nsuad8qqda->get_AngleRange())) {
         $_13og6oucqkmjge4p = true;
     }
     while ($_Ohhqoxu3muld1l43qwzl4 < $_Omxhva3wovm3cce3) {
         $_O5bb0lyy7tpuaacb = $_Ohhqoxu3muld1l43qwzl4;
         $_o5clwix7xf4vhp54 = $_Ii4d435hina42t91xfihbvfnu3;
         $_1dhs33zk7nv58a78 = $_Ohhqoxu3muld1l43qwzl4;
         $_iq54gpzwjw620c81pebqv7iv2v = $_lup43cwqxkvfzn5h;
         if ($_13og6oucqkmjge4p) {
             $_l6dpja6ctrr45al350ayt50ecj = $_Ovypz81v4o8nsuad8qqda->get_Angle();
             $_ljar306spswm6gfo = LBD_Line::RotateLine($_O5bb0lyy7tpuaacb, $_o5clwix7xf4vhp54, $_1dhs33zk7nv58a78, $_iq54gpzwjw620c81pebqv7iv2v, $_l6dpja6ctrr45al350ayt50ecj);
             $_O5bb0lyy7tpuaacb = $_ljar306spswm6gfo[0];
             $_o5clwix7xf4vhp54 = $_ljar306spswm6gfo[1];
             $_1dhs33zk7nv58a78 = $_ljar306spswm6gfo[2];
             $_iq54gpzwjw620c81pebqv7iv2v = $_ljar306spswm6gfo[3];
         }
         $_iu60quqhyfh65on5ug6ov = 0;
         $_iod0csm3hlx4l10gq79wa = $_1dhs33zk7nv58a78 - $_O5bb0lyy7tpuaacb;
         $_iqa0qq60tagqcy3n2p276rofcm = $_iq54gpzwjw620c81pebqv7iv2v - $_o5clwix7xf4vhp54;
         $_0ifpoh2m1irs4a648bwki = -1;
         $_Idwtpwkk5u8k1c7l = 1;
         if (0 == $_iod0csm3hlx4l10gq79wa) {
             $_Idwtpwkk5u8k1c7l = 0;
         } else {
             if (0 == $_iqa0qq60tagqcy3n2p276rofcm) {
                 $_0ifpoh2m1irs4a648bwki = 0;
             } else {
                 $_iu60quqhyfh65on5ug6ov = atan2($_iod0csm3hlx4l10gq79wa, $_iqa0qq60tagqcy3n2p276rofcm);
                 $_0ifpoh2m1irs4a648bwki *= cos($_iu60quqhyfh65on5ug6ov);
                 $_Idwtpwkk5u8k1c7l *= sin($_iu60quqhyfh65on5ug6ov);
             }
         }
         $_Iuf3mhbihtjjudso = 0;
         for ($_op4sib2rcy8x3cxfonidb = 0; $_op4sib2rcy8x3cxfonidb < $_12sphezmj8rvolou; $_op4sib2rcy8x3cxfonidb++) {
             $_04fkkwf25p8qgp12p507d = $_lq8fi3v1x4ykaywod30dc3ugiq[$_op4sib2rcy8x3cxfonidb];
             if ($_It2j6psb400kicl09o6xv) {
                 $_1hc5t74ljtjvbtzf1mee4wmwyb = $_04fkkwf25p8qgp12p507d[0]->get_Color();
                 $_03f47dqhh5tipeyegdhf2 = imagecolorallocate($_Ois5fjvas1xqso11ktyze, $_1hc5t74ljtjvbtzf1mee4wmwyb->get_R(), $_1hc5t74ljtjvbtzf1mee4wmwyb->get_G(), $_1hc5t74ljtjvbtzf1mee4wmwyb->get_B());
                 $_Igqcafbmw71hbulx76b5r = $_04fkkwf25p8qgp12p507d->get_Thickness();
             } else {
                 $_03f47dqhh5tipeyegdhf2 = $_o98gmo7o3sedsqgz[$_op4sib2rcy8x3cxfonidb][1];
                 $_Igqcafbmw71hbulx76b5r = $_o98gmo7o3sedsqgz[$_op4sib2rcy8x3cxfonidb][0];
             }
             $_iue0vjqj8lfqmkd0403mmmhmdi = $_0ifpoh2m1irs4a648bwki * $_Igqcafbmw71hbulx76b5r;
             $_Oyc79qwlnfxosisz = $_Idwtpwkk5u8k1c7l * $_Igqcafbmw71hbulx76b5r;
             if ($_Igqcafbmw71hbulx76b5r == 1) {
                 imageline($_Ois5fjvas1xqso11ktyze, $_O5bb0lyy7tpuaacb, $_o5clwix7xf4vhp54, $_1dhs33zk7nv58a78, $_iq54gpzwjw620c81pebqv7iv2v, $_03f47dqhh5tipeyegdhf2);
             } else {
                 $_oqxwnqk04jyfaq31o14bz60nz3 = 2 * $_Igqcafbmw71hbulx76b5r + 1;
                 for ($_i1woogfhfvjqv6al = 0; $_i1woogfhfvjqv6al < $_oqxwnqk04jyfaq31o14bz60nz3; $_i1woogfhfvjqv6al++) {
                     imageline($_Ois5fjvas1xqso11ktyze, $_O5bb0lyy7tpuaacb + $_i1woogfhfvjqv6al * ($_0ifpoh2m1irs4a648bwki / 2.0), $_o5clwix7xf4vhp54 + $_i1woogfhfvjqv6al * ($_Idwtpwkk5u8k1c7l / 2.0), $_1dhs33zk7nv58a78 + $_i1woogfhfvjqv6al * ($_0ifpoh2m1irs4a648bwki / 2.0), $_iq54gpzwjw620c81pebqv7iv2v + $_i1woogfhfvjqv6al * ($_Idwtpwkk5u8k1c7l / 2.0), $_03f47dqhh5tipeyegdhf2);
                 }
             }
             $_O5bb0lyy7tpuaacb += $_iue0vjqj8lfqmkd0403mmmhmdi;
             $_o5clwix7xf4vhp54 += $_Oyc79qwlnfxosisz;
             $_1dhs33zk7nv58a78 += $_iue0vjqj8lfqmkd0403mmmhmdi;
             $_iq54gpzwjw620c81pebqv7iv2v += $_Oyc79qwlnfxosisz;
         }
         if ($_O2sr199r971eqdtvo1dhn) {
             $_0o7w12y3fiwqe0wamh2a0 = $this->get_Spacing();
         }
         $_Ohhqoxu3muld1l43qwzl4 += $_0o7w12y3fiwqe0wamh2a0;
     }
 }
 public function DrawFast(LBD_GDGraphics $_ojt57q1kx9acj9zjcd2ed, LBD_Rectangle $_ooehfnbhk093937ddq1ywuoend)
 {
     $_Ic173kaal2q68i8bygj6kt8o87 = $_ojt57q1kx9acj9zjcd2ed->GetGDImage();
     $_iiu8cfmv1rwfur4etg2l5 = $_ooehfnbhk093937ddq1ywuoend->get_Width();
     $_omgkjbrd0telduj8fa2ql = $_ooehfnbhk093937ddq1ywuoend->get_TopLeft()->get_Y();
     $_Ilddactfdgj5g361 = $_ooehfnbhk093937ddq1ywuoend->get_BottomRight()->get_Y();
     $_oi3udfa0x6bduv1oj88vu = LBD_RandomizationHelper::RandomFromRange(0, $this->get_SpacingRange()->get_Min());
     $_071ows4uif7exhrly59lq = $this->_o5qkgs1p2m0168seticu5lth70->get_IsRandomized();
     $_1f4rrcmud2u36w0t = $this->get_Spacing();
     $_oescb0rxl7sttkxd5h0py4iga5 = $this->get_Prototype()->get_Outline();
     $_on0vjaj89njhwabr = $_oescb0rxl7sttkxd5h0py4iga5->get_LayerCount();
     $_1tiy73okgabqkn9s = false;
     for ($_13kkhcwv8usxp6me = 0; $_13kkhcwv8usxp6me < $_on0vjaj89njhwabr; $_13kkhcwv8usxp6me++) {
         $_iwzoc6iz259kyd7t53rro = $_oescb0rxl7sttkxd5h0py4iga5[$_13kkhcwv8usxp6me];
         $_1tiy73okgabqkn9s = $_iwzoc6iz259kyd7t53rro[0]->get_Color()->get_IsRandomized();
         if ($_1tiy73okgabqkn9s) {
             break;
         }
     }
     if (!$_1tiy73okgabqkn9s) {
         $_Oz7vxh48175lju42q7rvqua2br = array();
         for ($_13kkhcwv8usxp6me = 0; $_13kkhcwv8usxp6me < $_on0vjaj89njhwabr; $_13kkhcwv8usxp6me++) {
             $_iwzoc6iz259kyd7t53rro = $_oescb0rxl7sttkxd5h0py4iga5[$_13kkhcwv8usxp6me];
             $_Oz7vxh48175lju42q7rvqua2br[$_13kkhcwv8usxp6me] = array();
             $_Oz7vxh48175lju42q7rvqua2br[$_13kkhcwv8usxp6me][0] = $_iwzoc6iz259kyd7t53rro->get_Thickness();
             $_Iur9hpvpvb4efba0k422e = $_iwzoc6iz259kyd7t53rro[0]->get_Color();
             $_Obgcwbdxs7ikalc5 = imagecolorallocate($_Ic173kaal2q68i8bygj6kt8o87, $_Iur9hpvpvb4efba0k422e->get_R(), $_Iur9hpvpvb4efba0k422e->get_G(), $_Iur9hpvpvb4efba0k422e->get_B());
             $_Oz7vxh48175lju42q7rvqua2br[$_13kkhcwv8usxp6me][1] = $_Obgcwbdxs7ikalc5;
         }
     }
     $_Ihu35gx6tgfdxzptc0qqb120hp = false;
     $_1h7s75c5jhquf8ebuzs3n70h2b = $this->get_Prototype()->get_Transform()->get_Rotation();
     if (!is_null($_1h7s75c5jhquf8ebuzs3n70h2b->get_AngleRange())) {
         $_Ihu35gx6tgfdxzptc0qqb120hp = true;
     }
     while ($_oi3udfa0x6bduv1oj88vu < $_iiu8cfmv1rwfur4etg2l5) {
         $_onavxg2u63i1xgpz3v51ttn2jy = $_oi3udfa0x6bduv1oj88vu;
         $_l1yi0x133sfzl1gk = $_omgkjbrd0telduj8fa2ql;
         $_obnskrgc0ndtoye6vvv2e = $_oi3udfa0x6bduv1oj88vu;
         $_0rizc1v4si915v4t96kyj = $_Ilddactfdgj5g361;
         if ($_Ihu35gx6tgfdxzptc0qqb120hp) {
             $_0ohd7rbj6kl61nqkr95o5 = $_1h7s75c5jhquf8ebuzs3n70h2b->get_Angle();
             $_ihtbxnpob3rkce68buuuem2ipk = LBD_Line::RotateLine($_onavxg2u63i1xgpz3v51ttn2jy, $_l1yi0x133sfzl1gk, $_obnskrgc0ndtoye6vvv2e, $_0rizc1v4si915v4t96kyj, $_0ohd7rbj6kl61nqkr95o5);
             $_onavxg2u63i1xgpz3v51ttn2jy = $_ihtbxnpob3rkce68buuuem2ipk[0];
             $_l1yi0x133sfzl1gk = $_ihtbxnpob3rkce68buuuem2ipk[1];
             $_obnskrgc0ndtoye6vvv2e = $_ihtbxnpob3rkce68buuuem2ipk[2];
             $_0rizc1v4si915v4t96kyj = $_ihtbxnpob3rkce68buuuem2ipk[3];
         }
         $_ogw4b2szbinuweek9d5kv = 0;
         $_0wqfvqj83ueaa29h6c4zm = $_obnskrgc0ndtoye6vvv2e - $_onavxg2u63i1xgpz3v51ttn2jy;
         $_Osdxtrbtshxvexyoektj5ufl5i = $_0rizc1v4si915v4t96kyj - $_l1yi0x133sfzl1gk;
         $_lqmol1ekq6kqb6jq = -1;
         $_iiq6miphfr15gmjf = 1;
         if (0 == $_0wqfvqj83ueaa29h6c4zm) {
             $_iiq6miphfr15gmjf = 0;
         } else {
             if (0 == $_Osdxtrbtshxvexyoektj5ufl5i) {
                 $_lqmol1ekq6kqb6jq = 0;
             } else {
                 $_ogw4b2szbinuweek9d5kv = atan2($_0wqfvqj83ueaa29h6c4zm, $_Osdxtrbtshxvexyoektj5ufl5i);
                 $_lqmol1ekq6kqb6jq *= cos($_ogw4b2szbinuweek9d5kv);
                 $_iiq6miphfr15gmjf *= sin($_ogw4b2szbinuweek9d5kv);
             }
         }
         $_iawfrx8w9xuh7xzdchkdr = 0;
         for ($_13kkhcwv8usxp6me = 0; $_13kkhcwv8usxp6me < $_on0vjaj89njhwabr; $_13kkhcwv8usxp6me++) {
             $_iwzoc6iz259kyd7t53rro = $_oescb0rxl7sttkxd5h0py4iga5[$_13kkhcwv8usxp6me];
             if ($_1tiy73okgabqkn9s) {
                 $_Iur9hpvpvb4efba0k422e = $_iwzoc6iz259kyd7t53rro[0]->get_Color();
                 $_Obgcwbdxs7ikalc5 = imagecolorallocate($_Ic173kaal2q68i8bygj6kt8o87, $_Iur9hpvpvb4efba0k422e->get_R(), $_Iur9hpvpvb4efba0k422e->get_G(), $_Iur9hpvpvb4efba0k422e->get_B());
                 $_lejt2sawwarrozde = $_iwzoc6iz259kyd7t53rro->get_Thickness();
             } else {
                 $_Obgcwbdxs7ikalc5 = $_Oz7vxh48175lju42q7rvqua2br[$_13kkhcwv8usxp6me][1];
                 $_lejt2sawwarrozde = $_Oz7vxh48175lju42q7rvqua2br[$_13kkhcwv8usxp6me][0];
             }
             $_1b59fhmp1slz0ya1g3c85 = $_lqmol1ekq6kqb6jq * $_lejt2sawwarrozde;
             $_0m58qlvpcvvkfoc43w5agdoerl = $_iiq6miphfr15gmjf * $_lejt2sawwarrozde;
             if ($_lejt2sawwarrozde == 1) {
                 imageline($_Ic173kaal2q68i8bygj6kt8o87, $_onavxg2u63i1xgpz3v51ttn2jy, $_l1yi0x133sfzl1gk, $_obnskrgc0ndtoye6vvv2e, $_0rizc1v4si915v4t96kyj, $_Obgcwbdxs7ikalc5);
             } else {
                 $_lf8ei9wk58kjp3dz = 2 * $_lejt2sawwarrozde + 1;
                 for ($_i2sixln5a184kotcw0u46 = 0; $_i2sixln5a184kotcw0u46 < $_lf8ei9wk58kjp3dz; $_i2sixln5a184kotcw0u46++) {
                     imageline($_Ic173kaal2q68i8bygj6kt8o87, $_onavxg2u63i1xgpz3v51ttn2jy + $_i2sixln5a184kotcw0u46 * ($_lqmol1ekq6kqb6jq / 2.0), $_l1yi0x133sfzl1gk + $_i2sixln5a184kotcw0u46 * ($_iiq6miphfr15gmjf / 2.0), $_obnskrgc0ndtoye6vvv2e + $_i2sixln5a184kotcw0u46 * ($_lqmol1ekq6kqb6jq / 2.0), $_0rizc1v4si915v4t96kyj + $_i2sixln5a184kotcw0u46 * ($_iiq6miphfr15gmjf / 2.0), $_Obgcwbdxs7ikalc5);
                 }
             }
             $_onavxg2u63i1xgpz3v51ttn2jy += $_1b59fhmp1slz0ya1g3c85;
             $_l1yi0x133sfzl1gk += $_0m58qlvpcvvkfoc43w5agdoerl;
             $_obnskrgc0ndtoye6vvv2e += $_1b59fhmp1slz0ya1g3c85;
             $_0rizc1v4si915v4t96kyj += $_0m58qlvpcvvkfoc43w5agdoerl;
         }
         if ($_071ows4uif7exhrly59lq) {
             $_1f4rrcmud2u36w0t = $this->get_Spacing();
         }
         $_oi3udfa0x6bduv1oj88vu += $_1f4rrcmud2u36w0t;
     }
 }
コード例 #4
0
ファイル: CaptchaIncludes.php プロジェクト: Keneth1212/moodle
 public function DrawFast(LBD_GDGraphics $_Ok72ok8p9lcm213c, LBD_Rectangle $_1eyimww0truwxpus7r7ro)
 {
     $_oyy0fw55ox44xeau = $_Ok72ok8p9lcm213c->GetGDImage();
     $_Ik0xth85ke6qe2x3gzsa0 = $_1eyimww0truwxpus7r7ro->get_Width();
     $_o45dzkvnth4ivzojqj4pirvw92 = $_1eyimww0truwxpus7r7ro->get_TopLeft()->get_Y();
     $_llqlizfogjm40dh1 = $_1eyimww0truwxpus7r7ro->get_BottomRight()->get_Y();
     $_Osfahrodljwzfs1r59gfmt6qhc = LBD_RandomizationHelper::RandomFromRange(0, $this->get_SpacingRange()->get_Min());
     $_Oag3w1pv6kmn3r5l = $this->_iatjgeunqr7itav4mt3ps->get_IsRandomized();
     $_1dyj07gvhpjmc90qm10x8xtlom = $this->get_Spacing();
     $_1cfe3jgyk3cmb4fjy7jaw89p4f = $this->get_Prototype()->get_Outline();
     $_lwtx2uxay1b8r932 = $_1cfe3jgyk3cmb4fjy7jaw89p4f->get_LayerCount();
     $_lpy8j0jzuvulwn4eod99l = false;
     for ($_Is05axi9mpetmva7s1nrt = 0; $_Is05axi9mpetmva7s1nrt < $_lwtx2uxay1b8r932; $_Is05axi9mpetmva7s1nrt++) {
         $_Iinyrfj7rnqsrxvs5vjwo2bv0h = $_1cfe3jgyk3cmb4fjy7jaw89p4f[$_Is05axi9mpetmva7s1nrt];
         $_lpy8j0jzuvulwn4eod99l = $_Iinyrfj7rnqsrxvs5vjwo2bv0h[0]->get_Color()->get_IsRandomized();
         if ($_lpy8j0jzuvulwn4eod99l) {
             break;
         }
     }
     if (!$_lpy8j0jzuvulwn4eod99l) {
         $_1okcw9qa11893ctz = array();
         for ($_Is05axi9mpetmva7s1nrt = 0; $_Is05axi9mpetmva7s1nrt < $_lwtx2uxay1b8r932; $_Is05axi9mpetmva7s1nrt++) {
             $_Iinyrfj7rnqsrxvs5vjwo2bv0h = $_1cfe3jgyk3cmb4fjy7jaw89p4f[$_Is05axi9mpetmva7s1nrt];
             $_1okcw9qa11893ctz[$_Is05axi9mpetmva7s1nrt] = array();
             $_1okcw9qa11893ctz[$_Is05axi9mpetmva7s1nrt][0] = $_Iinyrfj7rnqsrxvs5vjwo2bv0h->get_Thickness();
             $_I6kvfs5t1pz6ronyn1ul2 = $_Iinyrfj7rnqsrxvs5vjwo2bv0h[0]->get_Color();
             $_0tvh5nt0hdcdeuci70dg9 = imagecolorallocate($_oyy0fw55ox44xeau, $_I6kvfs5t1pz6ronyn1ul2->get_R(), $_I6kvfs5t1pz6ronyn1ul2->get_G(), $_I6kvfs5t1pz6ronyn1ul2->get_B());
             $_1okcw9qa11893ctz[$_Is05axi9mpetmva7s1nrt][1] = $_0tvh5nt0hdcdeuci70dg9;
         }
     }
     $_Idfkb1fuzpmqixi7nio2f4l1s2 = false;
     $_Ohcaynahh89826ypsp23r = $this->get_Prototype()->get_Transform()->get_Rotation();
     if (!is_null($_Ohcaynahh89826ypsp23r->get_AngleRange())) {
         $_Idfkb1fuzpmqixi7nio2f4l1s2 = true;
     }
     while ($_Osfahrodljwzfs1r59gfmt6qhc < $_Ik0xth85ke6qe2x3gzsa0) {
         $_iq8fz1m1e0gh5t97g04mg = $_Osfahrodljwzfs1r59gfmt6qhc;
         $_Ixwk1zgcmjyhoyrzsnhbh = $_o45dzkvnth4ivzojqj4pirvw92;
         $_i7vs4e8gnzgn473j = $_Osfahrodljwzfs1r59gfmt6qhc;
         $_1eon2rlj0n1eu3a3z7uolwjd74 = $_llqlizfogjm40dh1;
         if ($_Idfkb1fuzpmqixi7nio2f4l1s2) {
             $_io68zjzt8dkek1x55aj1r = $_Ohcaynahh89826ypsp23r->get_Angle();
             $_Izkkbbwq1o8aawzo = LBD_Line::RotateLine($_iq8fz1m1e0gh5t97g04mg, $_Ixwk1zgcmjyhoyrzsnhbh, $_i7vs4e8gnzgn473j, $_1eon2rlj0n1eu3a3z7uolwjd74, $_io68zjzt8dkek1x55aj1r);
             $_iq8fz1m1e0gh5t97g04mg = $_Izkkbbwq1o8aawzo[0];
             $_Ixwk1zgcmjyhoyrzsnhbh = $_Izkkbbwq1o8aawzo[1];
             $_i7vs4e8gnzgn473j = $_Izkkbbwq1o8aawzo[2];
             $_1eon2rlj0n1eu3a3z7uolwjd74 = $_Izkkbbwq1o8aawzo[3];
         }
         $_l54it0d4f2o1luehejgk6 = 0;
         $_0wnaakxvjmezrcsz = $_i7vs4e8gnzgn473j - $_iq8fz1m1e0gh5t97g04mg;
         $_ohprmvp9mvgalkbdost9q = $_1eon2rlj0n1eu3a3z7uolwjd74 - $_Ixwk1zgcmjyhoyrzsnhbh;
         $_i2cg3czb16s2jhpi1a95eos8vp = -1;
         $_lipsej37qqzraad6n1acaakupv = 1;
         if (0 == $_0wnaakxvjmezrcsz) {
             $_lipsej37qqzraad6n1acaakupv = 0;
         } else {
             if (0 == $_ohprmvp9mvgalkbdost9q) {
                 $_i2cg3czb16s2jhpi1a95eos8vp = 0;
             } else {
                 $_l54it0d4f2o1luehejgk6 = atan2($_0wnaakxvjmezrcsz, $_ohprmvp9mvgalkbdost9q);
                 $_i2cg3czb16s2jhpi1a95eos8vp *= cos($_l54it0d4f2o1luehejgk6);
                 $_lipsej37qqzraad6n1acaakupv *= sin($_l54it0d4f2o1luehejgk6);
             }
         }
         $_lda0geuoqs1inkz3j48ym = 0;
         for ($_Is05axi9mpetmva7s1nrt = 0; $_Is05axi9mpetmva7s1nrt < $_lwtx2uxay1b8r932; $_Is05axi9mpetmva7s1nrt++) {
             $_Iinyrfj7rnqsrxvs5vjwo2bv0h = $_1cfe3jgyk3cmb4fjy7jaw89p4f[$_Is05axi9mpetmva7s1nrt];
             if ($_lpy8j0jzuvulwn4eod99l) {
                 $_I6kvfs5t1pz6ronyn1ul2 = $_Iinyrfj7rnqsrxvs5vjwo2bv0h[0]->get_Color();
                 $_0tvh5nt0hdcdeuci70dg9 = imagecolorallocate($_oyy0fw55ox44xeau, $_I6kvfs5t1pz6ronyn1ul2->get_R(), $_I6kvfs5t1pz6ronyn1ul2->get_G(), $_I6kvfs5t1pz6ronyn1ul2->get_B());
                 $_o4yt0kf0574zq9n0 = $_Iinyrfj7rnqsrxvs5vjwo2bv0h->get_Thickness();
             } else {
                 $_0tvh5nt0hdcdeuci70dg9 = $_1okcw9qa11893ctz[$_Is05axi9mpetmva7s1nrt][1];
                 $_o4yt0kf0574zq9n0 = $_1okcw9qa11893ctz[$_Is05axi9mpetmva7s1nrt][0];
             }
             $_okftbo120zihzey55yoa0 = $_i2cg3czb16s2jhpi1a95eos8vp * $_o4yt0kf0574zq9n0;
             $_ogjdr8b5ljzya9kez2l3k = $_lipsej37qqzraad6n1acaakupv * $_o4yt0kf0574zq9n0;
             if ($_o4yt0kf0574zq9n0 == 1) {
                 imageline($_oyy0fw55ox44xeau, $_iq8fz1m1e0gh5t97g04mg, $_Ixwk1zgcmjyhoyrzsnhbh, $_i7vs4e8gnzgn473j, $_1eon2rlj0n1eu3a3z7uolwjd74, $_0tvh5nt0hdcdeuci70dg9);
             } else {
                 $_0v1oveebccl6pfpkvhnir = 2 * $_o4yt0kf0574zq9n0 + 1;
                 for ($_0lvzbg7yym9byotg = 0; $_0lvzbg7yym9byotg < $_0v1oveebccl6pfpkvhnir; $_0lvzbg7yym9byotg++) {
                     imageline($_oyy0fw55ox44xeau, $_iq8fz1m1e0gh5t97g04mg + $_0lvzbg7yym9byotg * ($_i2cg3czb16s2jhpi1a95eos8vp / 2.0), $_Ixwk1zgcmjyhoyrzsnhbh + $_0lvzbg7yym9byotg * ($_lipsej37qqzraad6n1acaakupv / 2.0), $_i7vs4e8gnzgn473j + $_0lvzbg7yym9byotg * ($_i2cg3czb16s2jhpi1a95eos8vp / 2.0), $_1eon2rlj0n1eu3a3z7uolwjd74 + $_0lvzbg7yym9byotg * ($_lipsej37qqzraad6n1acaakupv / 2.0), $_0tvh5nt0hdcdeuci70dg9);
                 }
             }
             $_iq8fz1m1e0gh5t97g04mg += $_okftbo120zihzey55yoa0;
             $_Ixwk1zgcmjyhoyrzsnhbh += $_ogjdr8b5ljzya9kez2l3k;
             $_i7vs4e8gnzgn473j += $_okftbo120zihzey55yoa0;
             $_1eon2rlj0n1eu3a3z7uolwjd74 += $_ogjdr8b5ljzya9kez2l3k;
         }
         if ($_Oag3w1pv6kmn3r5l) {
             $_1dyj07gvhpjmc90qm10x8xtlom = $this->get_Spacing();
         }
         $_Osfahrodljwzfs1r59gfmt6qhc += $_1dyj07gvhpjmc90qm10x8xtlom;
     }
 }