Yale University School of Art
1156 Chapel Street, New Haven, Connecticut
(203) 432-2600


Buoys
<html>

    <head>
        
        <Title>///////////////////////////////////COASTAL IDENTITY///////////////////////////////////</title>

            <style type="text/css">
            
                span {font-family: Arial; font-size: 24px; letter-spacing: -4px; line-height: 16px}    
            
            .blue {
                color: blue;
            }
            
            .red {
                color: red;
            }
            
            .magenta {
                color: magenta;
            }
            
            .green {
                color: green;
            }
            
            .purple {
                color: purple;
            }
            
            .yellow {
                color: yellow;
            }
                
            .orange {
                color: orange;
            }
            
            .teal {
                color: teal;
            }
            
            .pink {
                color: pink;
            }
        
            .black {
                color: black;
            }
            
            .white {
                color: white;
            }
            
            </style>
    
    </head>


<body>

    <?php
    
        $stripe 
"/////////////////////////////////////////////////////<br />";
        
$twoStripes $stripe $stripe;
        
$threeStripes $stripe $stripe $stripe;
        
$fourStripes $stripe $stripe $stripe $stripe;

        
        
$buoyTypes = array();
        
$buoyTypes[0] = "<span class='red'>".$fourStripes."</span><span class='blue'>".$fourStripes."</span>";
        
$buoyTypes[1] = "<span class='yellow'>".$fourStripes."</span><span class='blue'>".$fourStripes."</span>";
        
$buoyTypes[2] = "<span class='teal'>".$threeStripes."</span><span class='white'>".$twoStripes."</span><span class='pink'>".$threeStripes."</span>";
        
$buoyTypes[3] = "<span class='yellow'>".$threeStripes."</span><span class='green'>".$twoStripes."</span><span class='black'>".$threeStripes."</span>";
        
$buoyTypes[4] = "<span class='red'>".$threeStripes."</span><span class='white'>".$twoStripes."</span><span class='green'>".$threeStripes."</span>";
        
$buoyTypes[5] = "<span class='blue'>".$fourStripes."</span><span class='white'>".$fourStripes."</span>";
        
$buoyTypes[6] = "<span class='blue'>".$fourStripes."</span><span class='red'>".$fourStripes."</span>";
        
$buoyTypes[7] = "<span class='yellow'>".$fourStripes."</span><span class='black'>".$fourStripes."</span>";
        
$buoyTypes[8] = "<span class='blue'>".$threeStripes."</span><span class='orange'>".$twoStripes."</span><span class='white'>".$threeStripes."</span>";
        
$buoyTypes[9] = "<span class='purple'>".$fourStripes."</span><span class='blue'>".$fourStripes."</span>";
    
        
        
//SET 1

        
$positionSystems = array();
        
        
$positionSystems[0] = array();
        
$positionSystems[0][0] = "left: 510px; top: 510px;";
        
        
$positionSystems[1] = array();
        
$positionSystems[1][0] = "left: 170px; top: 0px;";
        
$positionSystems[1][1] = "left: 0px; top: 510px;";
        
$positionSystems[1][2] = "left: 850px; top: 510px;";
        
$positionSystems[1][3] = "left: 340px; top: 0px;";
        
$positionSystems[1][4] = "left: 340px; top: 510px;";
        
$positionSystems[1][5] = "left: 340px; top: 340px;";
        
        
$positionSystems[2] = array();
        
$positionSystems[2][0] = "left: 850px; top: 0px;";
        
$positionSystems[2][1] = "left: 510px; top: 0px;";
        
$positionSystems[2][2] = "left: 0px; top: 680px;";
        
$positionSystems[2][3] = "left: 510px; top: 340px;";
        
$positionSystems[2][4] = "left: 340px; top: 170px;";
        
        
$positionSystems[3] = array();
        
$positionSystems[3][0] = "left: 0px; top: 340px;";
        
$positionSystems[3][1] = "left: 510px; top: 850px;";
        
$positionSystems[3][2] = "left: 680px; top: 510px;";
        
        
$positionSystems[4] = array();
        
$positionSystems[4][0] = "left: 0px; top: 170px;";
        
$positionSystems[4][1] = "left: 680px; top: 340px;";
        
        
$positionSystems[5] = array();
        
$positionSystems[5][0] = "left: 170px; top: 170px;";
        
$positionSystems[5][1] = "left: 170px; top: 510px;";
        
$positionSystems[5][2] = "left: 170px; top: 340px;";
        
$positionSystems[5][3] = "left: 680px; top: 850px;";
        
$positionSystems[5][4] = "left: 0px; top: 0px;";

        
// SET 2
        
        
$positionSystems[6] = array();
        
$positionSystems[6][0] = "left: 765px; top: 425px;";
        
$positionSystems[6][1] = "left: 425px; top: 765px;";
        
$positionSystems[6][2] = "left: 595px; top: -85px;";
        
        
$positionSystems[7] = array();
        
$positionSystems[7][0] = "left: 85px; top: 765px;";
        
$positionSystems[7][1] = "left: 85px; top: 85px;";
        
$positionSystems[7][2] = "left: 255px; top: 255px;";
        
$positionSystems[7][2] = "left: 765px; top: 765px;";

        
$positionSystems[8] = array();
        
$positionSystems[8][0] = "left: 255px; top: 935px;";
        
        
$positionSystems[9] = array();
        
$positionSystems[9][0] = "left: 255px; top: -85px;";
        
$positionSystems[9][1] = "left: 595px; top: 595px;";
        
        
$positionSystems[10] = array();
        
$positionSystems[10][0] = "left: 255px; top: 595px;";
        
$positionSystems[10][1] = "left: 595px; top: 255px;";
        
$positionSystems[10][2] = "left: 425px; top: 85px;";
        
        
$positionSystems[11] = array();
        
$positionSystems[11][0] = "left: 85px; top: 425px;";
        
        
        
$position = array();
        
        
$position[0] = array_merge($positionSystems[0], $positionSystems[6]);
        
$position[1] = array_merge($positionSystems[1], $positionSystems[6]);
        
$position[2] = array_merge($positionSystems[2], $positionSystems[6]);
        
$position[3] = array_merge($positionSystems[3], $positionSystems[6]);
        
$position[4] = array_merge($positionSystems[4], $positionSystems[6]);
        
$position[5] = array_merge($positionSystems[5], $positionSystems[6]);
        
        
$position[6] = array_merge($positionSystems[0], $positionSystems[7]);
        
$position[7] = array_merge($positionSystems[1], $positionSystems[7]);
        
$position[8] = array_merge($positionSystems[2], $positionSystems[7]);
        
$position[9] = array_merge($positionSystems[3], $positionSystems[7]);
        
$position[10] = array_merge($positionSystems[4], $positionSystems[7]);
        
$position[11] = array_merge($positionSystems[5], $positionSystems[7]);

        
$position[12] = array_merge($positionSystems[0], $positionSystems[8]);
        
$position[13] = array_merge($positionSystems[1], $positionSystems[8]);
        
$position[14] = array_merge($positionSystems[2], $positionSystems[8]);
        
$position[15] = array_merge($positionSystems[3], $positionSystems[8]);
        
$position[16] = array_merge($positionSystems[4], $positionSystems[8]);
        
$position[17] = array_merge($positionSystems[5], $positionSystems[8]);
        
        
$position[18] = array_merge($positionSystems[0], $positionSystems[9]);
        
$position[19] = array_merge($positionSystems[1], $positionSystems[9]);
        
$position[20] = array_merge($positionSystems[2], $positionSystems[9]);
        
$position[21] = array_merge($positionSystems[3], $positionSystems[9]);
        
$position[22] = array_merge($positionSystems[4], $positionSystems[9]);
        
$position[23] = array_merge($positionSystems[5], $positionSystems[9]);
        
        
$position[24] = array_merge($positionSystems[0], $positionSystems[10]);
        
$position[25] = array_merge($positionSystems[1], $positionSystems[10]);
        
$position[26] = array_merge($positionSystems[2], $positionSystems[10]);
        
$position[27] = array_merge($positionSystems[3], $positionSystems[10]);
        
$position[28] = array_merge($positionSystems[4], $positionSystems[10]);
        
$position[29] = array_merge($positionSystems[5], $positionSystems[10]);
        
        
$position[30] = array_merge($positionSystems[0], $positionSystems[11]);
        
$position[31] = array_merge($positionSystems[1], $positionSystems[11]);
        
$position[32] = array_merge($positionSystems[2], $positionSystems[11]);
        
$position[33] = array_merge($positionSystems[3], $positionSystems[11]);
        
$position[34] = array_merge($positionSystems[4], $positionSystems[11]);
        
$position[35] = array_merge($positionSystems[5], $positionSystems[11]);
        
        
$positionInput intval($_REQUEST["positionInput"]);
        
$buoyInput intval($_REQUEST["buoyInput"]);

        for (
$i 0$i 4$i += 1) {

            
$buoyLimit count($position[$positionInput]);
        
            for (
$j 0$j $buoyLimit$j += 1) {

                
$coordinates $position[$positionInput][$j];
                echo(
"<div style='position: absolute; ".$coordinates."'>".$buoyTypes[$buoyInput]."</div>");        
                        
            }
            
            
$positionInput $positionInput 1;
            
$buoyInput $buoyInput 1;            
        
        }
    
?>

</body>


</html>
Last edited by: Geoffrey Edward Halber
Edit access: Everyone