Cubewiki 情報館 ver.2.16

F = datas/test.php
2015-04-18 10:43:46 更新
INDEX
header("Content-Type: image/gif");

$size = 80;


$fface = array(1,2,3,4,5,0,1,2,3);
$rface = array(1,2,3,4,5,0,1,2,3);
$lface = array(1,2,3,4,5,0,1,2,3);
$bface = array(1,2,3,4,5,0,1,2,3);
$dface = array(1,2,3,4,5,0,1,2,3);

$ucolors = $_GET['u'] ? $_GET['u'] : ($_POST['u'] ? $_POST['u'] : "000000");
/*
$fface = $_GET['f'] ? $_GET['f'] : ($_POST['f'] ? $_POST['f'] : $fface);
$rface = $_GET['r'] ? $_GET['r'] : ($_POST['r'] ? $_POST['r'] : $rface);
$lface = $_GET['l'] ? $_GET['l'] : ($_POST['l'] ? $_POST['l'] : $lface);
$bface = $_GET['b'] ? $_GET['b'] : ($_POST['b'] ? $_POST['b'] : $bface);
$dface = $_GET['d'] ? $_GET['d'] : ($_POST['d'] ? $_POST['d'] : $dface);
*
$uface = array(substr($ucolors, 0, 1),
substr($ucolors, 1, 1),
substr($ucolors, 2, 1),
substr($ucolors, 3, 1),
substr($ucolors, 4, 1),
substr($ucolors, 5, 1),
substr($ucolors, 6, 1),
substr($ucolors, 7, 1),
substr($ucolors, 8, 1));

$lrsize = 20;
$lrysize = 8;
$fbsize = 15;
$fbysize = 10;
$udsize = 20;
$lxsize = 12;
$bxsize = 12;
$dxsize = 3;
$dysize = 10;
$ldxsize = 4;
$ldysize = 4;
$bdxsize = 4;
$bdysize = 4;
$margin = 4;

$p01x = ($lxsize*3)+($fbsize*3) + $margin;
$p01y = ($bdxsize + $margin);

$p02x = $p01x + $lrsize; $p02y = $p01y + $lrysize;
$p03x = $p02x + $lrsize; $p03y = $p02y + $lrysize;
$p04x = $p03x + $lrsize; $p04y = $p03y + $lrysize;
$p05x = $p01x - $fbsize; $p05y = $p01y + $fbysize;
$p06x = $p05x + $lrsize; $p06y = $p05y + $lrysize;
$p07x = $p06x + $lrsize; $p07y = $p06y + $lrysize;
$p08x = $p07x + $lrsize; $p08y = $p07y + $lrysize;
$p09x = $p05x - $fbsize; $p09y = $p05y + $fbysize;
$p10x = $p09x + $lrsize; $p10y = $p09y + $lrysize;
$p11x = $p10x + $lrsize; $p11y = $p10y + $lrysize;
$p12x = $p11x + $lrsize; $p12y = $p11y + $lrysize;
$p13x = $p09x - $fbsize; $p13y = $p09y + $fbysize;
$p14x = $p13x + $lrsize; $p14y = $p13y + $lrysize;
$p15x = $p14x + $lrsize; $p15y = $p14y + $lrysize;
$p16x = $p15x + $lrsize; $p16y = $p15y + $lrysize;
$p17x = $p13x; $p17y = $p13y + $udsize;
$p18x = $p14x; $p18y = $p14y + $udsize;
$p19x = $p15x; $p19y = $p15y + $udsize;
$p20x = $p16x; $p20y = $p16y + $udsize;
$p21x = $p12x; $p21y = $p12y + $udsize;
$p22x = $p08x; $p22y = $p08y + $udsize;
$p23x = $p04x; $p23y = $p04y + $udsize;
$p24x = $p17x; $p24y = $p17y + $udsize;
$p25x = $p18x; $p25y = $p18y + $udsize;
$p26x = $p19x; $p26y = $p19y + $udsize;
$p27x = $p20x; $p27y = $p20y + $udsize;
$p28x = $p21x; $p28y = $p21y + $udsize;
$p29x = $p22x; $p29y = $p22y + $udsize;
$p30x = $p23x; $p30y = $p23y + $udsize;
$p31x = $p24x; $p31y = $p24y + $udsize;
$p32x = $p25x; $p32y = $p25y + $udsize;
$p33x = $p26x; $p33y = $p26y + $udsize;
$p34x = $p27x; $p34y = $p27y + $udsize;
$p35x = $p28x; $p35y = $p28y + $udsize;
$p36x = $p29x; $p36y = $p29y + $udsize;
$p37x = $p30x; $p37y = $p30y + $udsize;

$p38x = $p13x - ($lxsize*3); $p38y = $p13y;
$p39x = $p38x + $lxsize; $p39y = $p13y;
$p40x = $p39x + $lxsize; $p40y = $p13y;
$p41x = $p38x; $p41y = $p17y;
$p42x = $p39x; $p42y = $p17y;
$p43x = $p40x; $p43y = $p17y;
$p44x = $p38x; $p44y = $p24y;
$p45x = $p39x; $p45y = $p24y;
$p46x = $p40x; $p46y = $p24y;
$p47x = $p38x; $p47y = $p31y;
$p48x = $p39x; $p48y = $p31y;
$p49x = $p40x; $p49y = $p31y;
$p50x = $p31x - $dxsize; $p50y = $p31y + $dysize;
$p51x = $p50x - $dxsize; $p51y = $p50y + $dysize;
$p52x = $p51x - $dxsize; $p52y = $p51y + $dysize;
$p53x = $p32x - $dxsize; $p53y = $p32y + $dysize;
$p54x = $p53x - $dxsize; $p54y = $p53y + $dysize;
$p55x = $p54x - $dxsize; $p55y = $p54y + $dysize;
$p56x = $p33x - $dxsize; $p56y = $p33y + $dysize;
$p57x = $p56x - $dxsize; $p57y = $p56y + $dysize;
$p58x = $p57x - $dxsize; $p58y = $p57y + $dysize;
$p59x = $p34x - $dxsize; $p59y = $p34y + $dysize;
$p60x = $p59x - $dxsize; $p60y = $p59y + $dysize;
$p61x = $p60x - $dxsize; $p61y = $p60y + $dysize;
$p62x = $p04x + $bxsize; $p62y = $p04y;
$p63x = $p62x + $bxsize; $p63y = $p04y;
$p64x = $p63x + $bxsize; $p64y = $p04y;
$p65x = $p23x + $bxsize; $p65y = $p23y;
$p66x = $p65x + $bxsize; $p66y = $p23y;
$p67x = $p66x + $bxsize; $p67y = $p23y;
$p68x = $p30x + $bxsize; $p68y = $p30y;
$p69x = $p68x + $bxsize; $p69y = $p30y;
$p70x = $p69x + $bxsize; $p70y = $p30y;
$p71x = $p37x + $bxsize; $p71y = $p37y;
$p72x = $p71x + $bxsize; $p72y = $p37y;
$p73x = $p72x + $bxsize; $p73y = $p37y;

$p74x = $p01x - $ldxsize; $p74y = $p01y - $ldysize;
$p75x = $p05x - $ldxsize; $p75y = $p05y - $ldysize;
$p76x = $p09x - $ldxsize; $p76y = $p09y - $ldysize;
$p77x = $p13x - $ldxsize; $p77y = $p13y - $ldysize;

$p78x = $p01x + $bdxsize; $p78y = $p01y - $bdysize;
$p79x = $p02x + $bdxsize; $p79y = $p02y - $bdysize;
$p80x = $p03x + $bdxsize; $p80y = $p03y - $bdysize;
$p81x = $p04x + $bdxsize; $p81y = $p04y - $bdysize;

$p01x = $p01x * $size / 100; $p01y = $p01y * $size / 100;
$p02x = $p02x * $size / 100; $p02y = $p02y * $size / 100;
$p03x = $p03x * $size / 100; $p03y = $p03y * $size / 100;
$p04x = $p04x * $size / 100; $p04y = $p04y * $size / 100;
$p05x = $p05x * $size / 100; $p05y = $p05y * $size / 100;
$p06x = $p06x * $size / 100; $p06y = $p06y * $size / 100;
$p07x = $p07x * $size / 100; $p07y = $p07y * $size / 100;
$p08x = $p08x * $size / 100; $p08y = $p08y * $size / 100;
$p09x = $p09x * $size / 100; $p09y = $p09y * $size / 100;
$p10x = $p10x * $size / 100; $p10y = $p10y * $size / 100;
$p11x = $p11x * $size / 100; $p11y = $p11y * $size / 100;
$p12x = $p12x * $size / 100; $p12y = $p12y * $size / 100;
$p13x = $p13x * $size / 100; $p13y = $p13y * $size / 100;
$p14x = $p14x * $size / 100; $p14y = $p14y * $size / 100;
$p15x = $p15x * $size / 100; $p15y = $p15y * $size / 100;
$p16x = $p16x * $size / 100; $p16y = $p16y * $size / 100;
$p17x = $p17x * $size / 100; $p17y = $p17y * $size / 100;
$p18x = $p18x * $size / 100; $p18y = $p18y * $size / 100;
$p19x = $p19x * $size / 100; $p19y = $p19y * $size / 100;
$p20x = $p20x * $size / 100; $p20y = $p20y * $size / 100;
$p21x = $p21x * $size / 100; $p21y = $p21y * $size / 100;
$p22x = $p22x * $size / 100; $p22y = $p22y * $size / 100;
$p23x = $p23x * $size / 100; $p23y = $p23y * $size / 100;
$p24x = $p24x * $size / 100; $p24y = $p24y * $size / 100;
$p25x = $p25x * $size / 100; $p25y = $p25y * $size / 100;
$p26x = $p26x * $size / 100; $p26y = $p26y * $size / 100;
$p27x = $p27x * $size / 100; $p27y = $p27y * $size / 100;
$p28x = $p28x * $size / 100; $p28y = $p28y * $size / 100;
$p29x = $p29x * $size / 100; $p29y = $p29y * $size / 100;
$p30x = $p30x * $size / 100; $p30y = $p30y * $size / 100;
$p31x = $p31x * $size / 100; $p31y = $p31y * $size / 100;
$p32x = $p32x * $size / 100; $p32y = $p32y * $size / 100;
$p33x = $p33x * $size / 100; $p33y = $p33y * $size / 100;
$p34x = $p34x * $size / 100; $p34y = $p34y * $size / 100;
$p35x = $p35x * $size / 100; $p35y = $p35y * $size / 100;
$p36x = $p36x * $size / 100; $p36y = $p36y * $size / 100;
$p37x = $p37x * $size / 100; $p37y = $p37y * $size / 100;
$p38x = $p38x * $size / 100; $p38y = $p38y * $size / 100;
$p39x = $p39x * $size / 100; $p39y = $p39y * $size / 100;
$p40x = $p40x * $size / 100; $p40y = $p40y * $size / 100;
$p41x = $p41x * $size / 100; $p41y = $p41y * $size / 100;
$p42x = $p42x * $size / 100; $p42y = $p42y * $size / 100;
$p43x = $p43x * $size / 100; $p43y = $p43y * $size / 100;
$p44x = $p44x * $size / 100; $p44y = $p44y * $size / 100;
$p45x = $p45x * $size / 100; $p45y = $p45y * $size / 100;
$p46x = $p46x * $size / 100; $p46y = $p46y * $size / 100;
$p47x = $p47x * $size / 100; $p47y = $p47y * $size / 100;
$p48x = $p48x * $size / 100; $p48y = $p48y * $size / 100;
$p49x = $p49x * $size / 100; $p49y = $p49y * $size / 100;
$p50x = $p50x * $size / 100; $p50y = $p50y * $size / 100;
$p51x = $p51x * $size / 100; $p51y = $p51y * $size / 100;
$p52x = $p52x * $size / 100; $p52y = $p52y * $size / 100;
$p53x = $p53x * $size / 100; $p53y = $p53y * $size / 100;
$p54x = $p54x * $size / 100; $p54y = $p54y * $size / 100;
$p55x = $p55x * $size / 100; $p55y = $p55y * $size / 100;
$p56x = $p56x * $size / 100; $p56y = $p56y * $size / 100;
$p57x = $p57x * $size / 100; $p57y = $p57y * $size / 100;
$p58x = $p58x * $size / 100; $p58y = $p58y * $size / 100;
$p59x = $p59x * $size / 100; $p59y = $p59y * $size / 100;
$p60x = $p60x * $size / 100; $p60y = $p60y * $size / 100;
$p61x = $p61x * $size / 100; $p61y = $p61y * $size / 100;
$p62x = $p62x * $size / 100; $p62y = $p62y * $size / 100;
$p63x = $p63x * $size / 100; $p63y = $p63y * $size / 100;
$p64x = $p64x * $size / 100; $p64y = $p64y * $size / 100;
$p65x = $p65x * $size / 100; $p65y = $p65y * $size / 100;
$p66x = $p66x * $size / 100; $p66y = $p66y * $size / 100;
$p67x = $p67x * $size / 100; $p67y = $p67y * $size / 100;
$p68x = $p68x * $size / 100; $p68y = $p68y * $size / 100;
$p69x = $p69x * $size / 100; $p69y = $p69y * $size / 100;
$p70x = $p70x * $size / 100; $p70y = $p70y * $size / 100;
$p71x = $p71x * $size / 100; $p71y = $p71y * $size / 100;
$p72x = $p72x * $size / 100; $p72y = $p72y * $size / 100;
$p73x = $p73x * $size / 100; $p73y = $p73y * $size / 100;
$p74x = $p74x * $size / 100; $p74y = $p74y * $size / 100;
$p75x = $p75x * $size / 100; $p75y = $p75y * $size / 100;
$p76x = $p76x * $size / 100; $p76y = $p76y * $size / 100;
$p77x = $p77x * $size / 100; $p77y = $p77y * $size / 100;
$p78x = $p78x * $size / 100; $p78y = $p78y * $size / 100;
$p79x = $p79x * $size / 100; $p79y = $p79y * $size / 100;
$p80x = $p80x * $size / 100; $p80y = $p80y * $size / 100;
$p81x = $p81x * $size / 100; $p81y = $p81y * $size / 100;


$maxx = $p64x + ($margin * $size / 100);
$maxy = $p61y + ($margin * $size / 100);

$img = imagecreatetruecolor($maxx, $maxy);

$red = imagecolorallocate($img, 220, 0, 0);
$green = imagecolorallocate($img, 0, 255, 0);
$blue = imagecolorallocate($img, 0, 0, 255);
$white = imagecolorallocate($img, 255, 255, 255);
$black = imagecolorallocate($img, 0, 0, 0);
$yellow = imagecolorallocate($img, 255, 255, 0);
$orange = imagecolorallocate($img, 255, 128, 0);
$gray = imagecolorallocate($img, 220, 220, 220);
$background = imagecolorallocate($img, 255, 255, 255);

$cubie = array($white, $green, $red, $blue, $orange, $yellow);

imagefill($img, 0, 0, $background);
$points = array($p01x, $p01y, $p78x, $p78y, $p81x, $p81y,
$p04x, $p04y, $p64x, $p64y, $p73x, $p73y,
$p37x, $p37y, $p34x, $p34y, $p61x, $p61y,
$p52x, $p52y, $p31x, $p31y, $p47x, $p47y,
$p38x, $p38y, $p13x, $p13y, $p77x, $p77y,
$p74x, $p74y);
imagefilledpolygon($img, $points, 16, $gray);

$u1p = array($p01x, $p01y, $p02x, $p02y, $p06x, $p06y, $p05x, $p05y);
$u2p = array($p02x, $p02y, $p03x, $p03y, $p07x, $p07y, $p06x, $p06y);
$u3p = array($p03x, $p03y, $p04x, $p04y, $p08x, $p08y, $p07x, $p07y);
$u4p = array($p05x, $p05y, $p06x, $p06y, $p10x, $p10y, $p09x, $p09y);
$u5p = array($p06x, $p06y, $p07x, $p07y, $p11x, $p11y, $p10x, $p10y);
$u6p = array($p07x, $p07y, $p08x, $p08y, $p12x, $p12y, $p11x, $p11y);
$u7p = array($p09x, $p09y, $p10x, $p10y, $p14x, $p14y, $p13x, $p13y);
$u8p = array($p10x, $p10y, $p11x, $p11y, $p15x, $p15y, $p14x, $p14y);
$u9p = array($p11x, $p11y, $p12x, $p12y, $p16x, $p16y, $p15x, $p15y);
imagefilledpolygon($img, $u1p, 4, $cubie[$uface[0]]);
imagefilledpolygon($img, $u2p, 4, $cubie[$uface[1]]);
imagefilledpolygon($img, $u3p, 4, $cubie[$uface[2]]);
imagefilledpolygon($img, $u4p, 4, $cubie[$uface[3]]);
imagefilledpolygon($img, $u5p, 4, $cubie[$uface[4]]);
imagefilledpolygon($img, $u6p, 4, $cubie[$uface[5]]);
imagefilledpolygon($img, $u7p, 4, $cubie[$uface[6]]);
imagefilledpolygon($img, $u8p, 4, $cubie[$uface[7]]);
imagefilledpolygon($img, $u9p, 4, $cubie[$uface[8]]);

$f1p = array($p13x, $p13y, $p14x, $p14y, $p18x, $p18y, $p17x, $p17y);
$f2p = array($p14x, $p14y, $p15x, $p15y, $p19x, $p19y, $p18x, $p18y);
$f3p = array($p15x, $p15y, $p16x, $p16y, $p20x, $p20y, $p19x, $p19y);
$f4p = array($p17x, $p17y, $p18x, $p18y, $p25x, $p25y, $p24x, $p24y);
$f5p = array($p18x, $p18y, $p19x, $p19y, $p26x, $p26y, $p25x, $p25y);
$f6p = array($p19x, $p19y, $p20x, $p20y, $p27x, $p27y, $p26x, $p26y);
$f7p = array($p24x, $p24y, $p25x, $p25y, $p32x, $p32y, $p31x, $p31y);
$f8p = array($p25x, $p25y, $p26x, $p26y, $p33x, $p33y, $p32x, $p32y);
$f9p = array($p26x, $p26y, $p27x, $p27y, $p34x, $p34y, $p33x, $p33y);
imagefilledpolygon($img, $f1p, 4, $green);
imagefilledpolygon($img, $f2p, 4, $red);
imagefilledpolygon($img, $f3p, 4, $orange);
imagefilledpolygon($img, $f4p, 4, $blue);
imagefilledpolygon($img, $f5p, 4, $green);
imagefilledpolygon($img, $f6p, 4, $yellow);
imagefilledpolygon($img, $f7p, 4, $yellow);
imagefilledpolygon($img, $f8p, 4, $blue);
imagefilledpolygon($img, $f9p, 4, $white);

$r1p = array($p16x, $p16y, $p12x, $p12y, $p21x, $p21y, $p20x, $p20y);
$r2p = array($p12x, $p12y, $p08x, $p08y, $p22x, $p22y, $p21x, $p21y);
$r3p = array($p08x, $p08y, $p04x, $p04y, $p23x, $p23y, $p22x, $p22y);
$r4p = array($p20x, $p20y, $p21x, $p21y, $p28x, $p28y, $p27x, $p27y);
$r5p = array($p21x, $p21y, $p22x, $p22y, $p29x, $p29y, $p28x, $p28y);
$r6p = array($p22x, $p22y, $p23x, $p23y, $p30x, $p30y, $p29x, $p29y);
$r7p = array($p27x, $p27y, $p28x, $p28y, $p35x, $p35y, $p34x, $p34y);
$r8p = array($p28x, $p28y, $p29x, $p29y, $p36x, $p36y, $p35x, $p35y);
$r9p = array($p29x, $p29y, $p30x, $p30y, $p37x, $p37y, $p36x, $p36y);
imagefilledpolygon($img, $r1p, 4, $green);
imagefilledpolygon($img, $r2p, 4, $red);
imagefilledpolygon($img, $r3p, 4, $orange);
imagefilledpolygon($img, $r4p, 4, $blue);
imagefilledpolygon($img, $r5p, 4, $red);
imagefilledpolygon($img, $r6p, 4, $yellow);
imagefilledpolygon($img, $r7p, 4, $yellow);
imagefilledpolygon($img, $r8p, 4, $blue);
imagefilledpolygon($img, $r9p, 4, $white);

$d1p = array($p31x, $p31y, $p32x, $p32y, $p53x, $p53y, $p50x, $p50y);
$d2p = array($p32x, $p32y, $p33x, $p33y, $p56x, $p56y, $p53x, $p53y);
$d3p = array($p33x, $p33y, $p34x, $p34y, $p59x, $p59y, $p56x, $p56y);
$d4p = array($p50x, $p50y, $p53x, $p53y, $p54x, $p54y, $p51x, $p51y);
$d5p = array($p53x, $p53y, $p56x, $p56y, $p57x, $p57y, $p54x, $p54y);
$d6p = array($p56x, $p56y, $p59x, $p59y, $p60x, $p60y, $p57x, $p57y);
$d7p = array($p51x, $p51y, $p54x, $p54y, $p55x, $p55y, $p52x, $p52y);
$d8p = array($p54x, $p54y, $p57x, $p57y, $p58x, $p58y, $p55x, $p55y);
$d9p = array($p57x, $p57y, $p60x, $p60y, $p61x, $p61y, $p58x, $p58y);
imagefilledpolygon($img, $d1p, 4, $green);
imagefilledpolygon($img, $d2p, 4, $red);
imagefilledpolygon($img, $d3p, 4, $orange);
imagefilledpolygon($img, $d4p, 4, $blue);
imagefilledpolygon($img, $d5p, 4, $yellow);
imagefilledpolygon($img, $d6p, 4, $yellow);
imagefilledpolygon($img, $d7p, 4, $yellow);
imagefilledpolygon($img, $d8p, 4, $blue);
imagefilledpolygon($img, $d9p, 4, $white);

$l1p = array($p38x, $p38y, $p39x, $p39y, $p42x, $p42y, $p41x, $p41y);
$l2p = array($p39x, $p39y, $p40x, $p40y, $p43x, $p43y, $p42x, $p42y);
$l3p = array($p40x, $p40y, $p13x, $p13y, $p17x, $p17y, $p43x, $p43y);
$l4p = array($p41x, $p41y, $p42x, $p42y, $p45x, $p45y, $p44x, $p44y);
$l5p = array($p42x, $p42y, $p43x, $p43y, $p46x, $p46y, $p45x, $p45y);
$l6p = array($p43x, $p43y, $p17x, $p17y, $p24x, $p24y, $p46x, $p46y);
$l7p = array($p44x, $p44y, $p45x, $p45y, $p48x, $p48y, $p47x, $p47y);
$l8p = array($p45x, $p45y, $p46x, $p46y, $p49x, $p49y, $p48x, $p48y);
$l9p = array($p46x, $p46y, $p24x, $p24y, $p31x, $p31y, $p49x, $p49y);
$l1pu= array($p74x, $p74y, $p01x, $p01y, $p05x, $p05y, $p75x, $p75y);
$l2pu= array($p75x, $p75y, $p05x, $p05y, $p09x, $p09y, $p76x, $p76y);
$l3pu= array($p76x, $p76y, $p09x, $p09y, $p13x, $p13y, $p77x, $p77y);
imagefilledpolygon($img, $l1p, 4, $green);
imagefilledpolygon($img, $l1pu, 4, $green);
imagefilledpolygon($img, $l2p, 4, $red);
imagefilledpolygon($img, $l2pu, 4, $red);
imagefilledpolygon($img, $l3p, 4, $orange);
imagefilledpolygon($img, $l3pu, 4, $orange);
imagefilledpolygon($img, $l4p, 4, $blue);
imagefilledpolygon($img, $l5p, 4, $orange);
imagefilledpolygon($img, $l6p, 4, $yellow);
imagefilledpolygon($img, $l7p, 4, $yellow);
imagefilledpolygon($img, $l8p, 4, $blue);
imagefilledpolygon($img, $l9p, 4, $white);


$b1p = array($p04x, $p04y, $p62x, $p62y, $p65x, $p65y, $p23x, $p23y);
$b2p = array($p62x, $p62y, $p63x, $p63y, $p66x, $p66y, $p65x, $p65y);
$b3p = array($p63x, $p63y, $p64x, $p64y, $p67x, $p67y, $p66x, $p66y);
$b4p = array($p23x, $p23y, $p65x, $p65y, $p68x, $p68y, $p30x, $p30y);
$b5p = array($p65x, $p65y, $p66x, $p66y, $p69x, $p69y, $p68x, $p68y);
$b6p = array($p66x, $p66y, $p67x, $p67y, $p70x, $p70y, $p69x, $p69y);
$b7p = array($p30x, $p30y, $p68x, $p68y, $p71x, $p71y, $p37x, $p37y);
$b8p = array($p68x, $p68y, $p69x, $p69y, $p72x, $p72y, $p71x, $p71y);
$b9p = array($p69x, $p69y, $p70x, $p70y, $p73x, $p73y, $p72x, $p72y);
$b1pu= array($p80x, $p80y, $p81x, $p81y, $p04x, $p04y, $p03x, $p03y);
$b2pu= array($p79x, $p79y, $p80x, $p80y, $p03x, $p03y, $p02x, $p02y);
$b3pu= array($p78x, $p78y, $p79x, $p79y, $p02x, $p02y, $p01x, $p01y);
imagefilledpolygon($img, $b1p, 4, $green);
imagefilledpolygon($img, $b1pu, 4, $green);
imagefilledpolygon($img, $b2p, 4, $red);
imagefilledpolygon($img, $b2pu, 4, $red);
imagefilledpolygon($img, $b3p, 4, $orange);
imagefilledpolygon($img, $b3pu, 4, $orange);
imagefilledpolygon($img, $b4p, 4, $blue);
imagefilledpolygon($img, $b5p, 4, $blue);
imagefilledpolygon($img, $b6p, 4, $yellow);
imagefilledpolygon($img, $b7p, 4, $yellow);
imagefilledpolygon($img, $b8p, 4, $blue);
imagefilledpolygon($img, $b9p, 4, $white);


imageline($img, $p01x, $p01y, $p04x, $p04y, $black);
imageline($img, $p05x, $p05y, $p08x, $p08y, $black);
imageline($img, $p09x, $p09y, $p12x, $p12y, $black);
imageline($img, $p13x, $p13y, $p16x, $p16y, $black);
imageline($img, $p17x, $p17y, $p20x, $p20y, $black);
imageline($img, $p24x, $p24y, $p27x, $p27y, $black);
imageline($img, $p31x, $p31y, $p34x, $p34y, $black);

imageline($img, $p01x, $p01y, $p13x, $p13y, $black);
imageline($img, $p02x, $p02y, $p14x, $p14y, $black);
imageline($img, $p03x, $p03y, $p15x, $p15y, $black);
imageline($img, $p04x, $p04y, $p16x, $p16y, $black);
imageline($img, $p23x, $p23y, $p20x, $p20y, $black);
imageline($img, $p30x, $p30y, $p27x, $p27y, $black);
imageline($img, $p37x, $p37y, $p34x, $p34y, $black);

imageline($img, $p13x, $p13y, $p31x, $p31y, $black);
imageline($img, $p14x, $p14y, $p32x, $p32y, $black);
imageline($img, $p15x, $p15y, $p33x, $p33y, $black);
imageline($img, $p16x, $p16y, $p34x, $p34y, $black);
imageline($img, $p12x, $p12y, $p35x, $p35y, $black);
imageline($img, $p08x, $p08y, $p36x, $p36y, $black);
imageline($img, $p04x, $p04y, $p37x, $p37y, $black);

imageline($img, $p38x, $p38y, $p13x, $p13y, $black);
imageline($img, $p41x, $p41y, $p17x, $p17y, $black);
imageline($img, $p44x, $p44y, $p24x, $p24y, $black);
imageline($img, $p47x, $p47y, $p31x, $p31y, $black);
imageline($img, $p38x, $p38y, $p47x, $p47y, $black);
imageline($img, $p39x, $p39y, $p48x, $p48y, $black);
imageline($img, $p40x, $p40y, $p49x, $p49y, $black);

imageline($img, $p04x, $p04y, $p64x, $p64y, $black);
imageline($img, $p23x, $p23y, $p67x, $p67y, $black);
imageline($img, $p30x, $p30y, $p70x, $p70y, $black);
imageline($img, $p37x, $p37y, $p73x, $p73y, $black);
imageline($img, $p62x, $p62y, $p71x, $p71y, $black);
imageline($img, $p63x, $p63y, $p72x, $p72y, $black);
imageline($img, $p64x, $p64y, $p73x, $p73y, $black);

imageline($img, $p50x, $p50y, $p59x, $p59y, $black);
imageline($img, $p51x, $p51y, $p60x, $p60y, $black);
imageline($img, $p52x, $p52y, $p61x, $p61y, $black);
imageline($img, $p31x, $p31y, $p52x, $p52y, $black);
imageline($img, $p32x, $p32y, $p55x, $p55y, $black);
imageline($img, $p33x, $p33y, $p58x, $p58y, $black);
imageline($img, $p34x, $p34y, $p61x, $p61y, $black);

imageline($img, $p74x, $p74y, $p01x, $p01y, $black);
imageline($img, $p75x, $p75y, $p05x, $p05y, $black);
imageline($img, $p76x, $p76y, $p09x, $p09y, $black);
imageline($img, $p77x, $p77y, $p13x, $p13y, $black);
imageline($img, $p74x, $p74y, $p77x, $p77y, $black);
imageline($img, $p78x, $p78y, $p01x, $p01y, $black);
imageline($img, $p79x, $p79y, $p02x, $p02y, $black);
imageline($img, $p80x, $p80y, $p03x, $p03y, $black);
imageline($img, $p81x, $p81y, $p04x, $p04y, $black);
imageline($img, $p78x, $p78y, $p81x, $p81y, $black);


imagegif($img);

?>

▲ページトップへ
Copyright ©2013-2024 Libra0977.   All Rights Reserved.   last updated 1970-01-01 09:00.
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)