Recent Changes - Search:

aohavkbs, http://www.tomshw.it/forum/members/buy-glucophage.html glucophage conveniente, tndgogaw, http://www.tomshw.it/forum/members/comprar-zyprexa.html zyprexa conveniente, vtyyhpgn, http://www.tomshw.it/forum/members/comprar-desyrel.html desyrel conveniente, fxjgwxxe, http://www.tomshw.it/forum/members/comprar-cytotec.html cytotec prezzo ridotto, sazxpbxj,

Assignment1Rob

Sample output:
R R R R R R R R R R R R R R R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R R R R R R R R R R R R R R R R R R R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 

Source code:

<?php
                echo("\n");
                echo("\n");

//get input
if ($argc < 2) exit("Tell me a letter and a height to draw it please. At least 8 as a minimum.\n\n");

//define letter height variable
$height = "$argv[2]";

//check letter height
if ($height < 8) exit("Need a height more than 8.\n\n");

//define letter variable
$letter = "$argv[1]";
$letter = strtoupper($letter);

//define letter midpoint variable
$heightMid = $height / 2;
$heightMid = round("$heightMid");

//define letter width variable
$width = $height * .75;
$width = round("$width");

//define letter width mid-point variable
$widthMid = $width / 2;
$widthMid = round("$widthMid");

//define letter width three-quarters variable
$widthThreeQuarters = $width * .75;
$widthThreeQuarters = round("$widthThreeQuarters");




//echo("$heightMid\n");
//echo("$argv[1]\n");
//echo("$argv[2]\n");
//echo("$heightMid\n");
//echo("$width\n");




//determine if letter should be reversed out or not.
if ($height < 100){


//Actually start to print letters

///////////////////////////////////NOT REVERSED OUT///////////////////////////////

//a

if ($letter == "A"){


fullAcrossNoEdges($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;                     }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");


//b
}else if ($letter == "B"){

fullAcrossNoRightEdges($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//c
}else if ($letter == "C"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 2));

fullAcrossNoLeftEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//d
}else if ($letter == "D"){

fullAcrossNoRightEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//e
}else if ($letter == "E"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");

//f
}else if ($letter == "F"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//g
}else if ($letter == "G"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//h
}else if ($letter == "H"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//i
}else if ($letter == "I"){
fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $height) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 2));
fullAcross($letter, $height, $width);



               echo("\n");
               echo("\n");



//j
}else if ($letter == "J"){

                $count = 0;
                do {
                        if ($count <= $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count <= $heightMid);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));
fullAcrossNoEdges($letter, $height, $width);



               echo("\n");
               echo("\n");



//k
}else if ($letter == "K"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//l
}else if ($letter == "L"){

                $count = 0;
                do {
                        if ($count < $height) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");




//m
}else if ($letter == "M"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddle($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


               echo("\n");
               echo("\n");



//n
}else if ($letter == "N"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


               echo("\n");
               echo("\n");



//o
}else if ($letter == "O"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//p
}else if ($letter == "P"){

fullAcrossNoRightEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//q
}else if ($letter == "Q"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);
threeQuarters($letter, $height, $width, $widthThreeQuarters);
threeQuartersPlusOne($letter, $height, $width, $widthThreeQuarters);
               echo("\n");
               echo("\n");


//r
}else if ($letter == "R"){

threeQuartersAcross($letter, $height, $width, $widthThreeQuarters);
        $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//s
}else if ($letter == "S"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));

fullAcrossNoEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//t
}else if ($letter == "T"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));
               echo("\n");
               echo("\n");

//u
}else if ($letter == "U"){

                $count = 0;
                do {
                        if ($count < $height) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//v
}else if ($letter == "V"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));



                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 2));




threeQuartersAcrossNoLeftEdge($letter, $height, $width, $widthThreeQuarters);
                echo("\n");
               echo("\n");



//w
}else if ($letter == "W"){


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddle($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");



//x
}else if ($letter == "X"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");


//y
}else if ($letter == "Y"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//z
}else if ($letter == "Z"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");



        }

}else if ($height > 100){










/////////////////////////////////REVERSED OUT/////////////////////////////////

if ($letter == "A"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);


fullAcrossNoEdgesR($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;                     }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//b
}else if ($letter == "B"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoRightEdgesR($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//c
}else if ($letter == "C"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoLeftEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 2));

fullAcrossNoLeftEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//d
}else if ($letter == "D"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoRightEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//e
}else if ($letter == "E"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//f
}else if ($letter == "F"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//g
}else if ($letter == "G"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoLeftEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//h
}else if ($letter == "H"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//i
}else if ($letter == "I"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $height) centerLineR($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 2));
               
fullAcrossR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//j
}else if ($letter == "J"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count <= $heightMid) rightEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count <= $heightMid);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));
               
fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//k
}else if ($letter == "K"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuartersR($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//l
}else if ($letter == "L"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcrossR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");




//m
}else if ($letter == "M"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddleR($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//n
}else if ($letter == "N"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//o
}else if ($letter == "O"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               
fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//p
}else if ($letter == "P"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoRightEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//q
}else if ($letter == "Q"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               
fullAcrossNoEdgesR($letter, $height, $width);

threeQuartersR($letter, $height, $width, $widthThreeQuarters);

threeQuartersPlusOneR($letter, $height, $width, $widthThreeQuarters);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//r
}else if ($letter == "R"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

threeQuartersAcrossR($letter, $height, $width, $widthThreeQuarters);
        $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuartersR($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//s
}else if ($letter == "S"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoLeftEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));

fullAcrossNoEdgesR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) rightEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//t
}else if ($letter == "T"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) centerLineR($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//u
}else if ($letter == "U"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//v
}else if ($letter == "V"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));



                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuartersR($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 2));

threeQuartersAcrossNoLeftEdgeR($letter, $height, $width, $widthThreeQuarters);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                echo("\n");
               echo("\n");



//w
}else if ($letter == "W"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddleR($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



//x
}else if ($letter == "X"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdgesR($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//y
}else if ($letter == "Y"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) centerLineR($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//z
}else if ($letter == "Z"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) rightEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");



        }
}

////////////////////////////////REVERSED OUT////////////////////////////



////////////////////////////////HORIZONTALS////////////////////////////////

//define letter parts: full across width
        function fullAcrossR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
                echo("\n");
                }

       


//define letter parts: full across width for top and bottom of reversed letters
        function fullAcrossReverse($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
                echo("\n");
                }

       


//define letter parts: full across width minus edges
        function fullAcrossNoEdgesR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                echo("$letter");
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count < ($width - 1));
                echo("$letter $letter $letter $letter ");
                echo("\n");
                }

       


//define letter parts: full across width minus right edges
        function fullAcrossNoRightEdgesR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count < $width);
                echo("$letter $letter $letter ");
                echo("\n");
                }

       


//define letter parts: full across width minus left edges
        function fullAcrossNoLeftEdgesR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                echo("$letter ");
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count < $width);
                echo("$letter $letter $letter ");
                echo("\n");
                }

       


//define letter parts: three quarters across width
        function threeQuartersAcrossR($letter, $height, $width, $widthThreeQuarters){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count <= $widthThreeQuarters);
                echo("$letter $letter $letter ");
                echo("\n");
                }
       

       

//define letter parts: three quarters across no left edge width
        function threeQuartersAcrossNoLeftEdgeR($letter, $height, $width, $widthThreeQuarters){
                echo("$letter $letter $letter ");
                echo("$letter ");
                $count = 0;
                do {
                        echo("  ");
                        $count++;                     
                        }
                while ($count < $widthThreeQuarters);
                echo("$letter $letter $letter ");
                echo("\n");
                }
       

       

       


////////////////////////////////VERTICALS////////////////////////////////
//define letter parts: both edges only
        function edgesOnlyR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count == 0) echo("  ");
                        if (($count > 0) and ($count < $width))  echo("$letter ");
                        if ($count == $width) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");

        }
       

       

//define letter parts: both edges and middle
        function edgesMiddleR($letter, $height, $width, $widthMid){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count == 0) echo("  ");
                        if (($count > 0) and ($count < $widthMid))  echo("$letter ");
                        if ($count == $widthMid) echo("  ");
                        if (($count > $widthMid) and ($count < $width))  echo("$letter ");
                        if ($count == $width) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");

        }
       

       

//define letter parts: three quarters 
        function threeQuartersR($letter, $height, $width, $widthThreeQuarters){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if (($count > 0) and ($count < $widthThreeQuarters))  echo("$letter ");
                        if ($count == $widthThreeQuarters) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");

        }
       

       

//define letter parts: three quarters plus 1
        function threeQuartersPlusOneR($letter, $height, $width, $widthThreeQuarters){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if (($count >= 0) and ($count < $widthThreeQuarters))  echo("$letter ");
                        if ($count == ($widthThreeQuarters + 1)) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");

        }
       

       

//define letter parts: left edge and three quarters 
        function edgeAndThreeQuartersR($letter, $height, $width, $widthThreeQuarters){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count == 0) echo("  ");
                        if (($count > 0) and ($count < $widthThreeQuarters))  echo("$letter ");
                        if ($count == $widthThreeQuarters) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");

        }
       

       

//define letter parts: left edge only
        function leftEdgeR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count == 0) echo("  ");
                        if ($count > 0)  echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");
        }
       

       

//define letter parts: right edge only
        function rightEdgeR($letter, $height, $width){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count < $width)  echo("$letter ");
                        if ($count == $width) echo("  ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");
        }
       

       

//define letter parts: center vertical bar
        function centerLineR($letter, $height, $width, $widthMid){
                echo("$letter $letter $letter ");
                $count = 0;
                do {
                        if ($count < $widthMid)  echo("$letter ");
                        if ($count == $widthMid) echo("  ");
                        $count++;
                        }
                while ($count <= $width);
                echo("$letter $letter $letter ");
               echo("\n");
        }











////////////////////////////////NOT REVERSED OUT////////////////////////////



////////////////////////////////HORIZONTALS////////////////////////////////
//define letter parts: full across width
        function fullAcross($letter, $height, $width){
                $count = 0;
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
                echo("\n");
                }

       


//define letter parts: full across width minus edges
        function fullAcrossNoEdges($letter, $height, $width){
                $count = 0;
                echo("  ");
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count < ($width - 1));
                echo("\n");
                }

       


//define letter parts: full across width minus right edges
        function fullAcrossNoRightEdges($letter, $height, $width){
                $count = 0;
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count < $width);
                echo("\n");
                }

       


//define letter parts: full across width minus left edges
        function fullAcrossNoLeftEdges($letter, $height, $width){
                $count = 0;
                echo("  ");
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count < $width);
                echo("\n");
                }

       


//define letter parts: three quarters across width
        function threeQuartersAcross($letter, $height, $width, $widthThreeQuarters){
                $count = 0;
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $widthThreeQuarters);
                echo("\n");
                }
       

       

//define letter parts: three quarters across no left edge width
        function threeQuartersAcrossNoLeftEdge($letter, $height, $width, $widthThreeQuarters){
                echo(" ");
                $count = 0;
                do {
                        echo("$letter ");
                        $count++;                     
                        }
                while ($count < $widthThreeQuarters);
                echo("\n");
                }
       

       

       


////////////////////////////////VERTICALS////////////////////////////////
//define letter parts: both edges only
        function edgesOnly($letter, $height, $width){
                $count = 0;
                do {
                        if ($count == 0) echo("$letter ");
                        if (($count > 0) and ($count < $width))  echo("  ");
                        if ($count == $width) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");

        }
       

       

//define letter parts: both edges and middle
        function edgesMiddle($letter, $height, $width, $widthMid){
                $count = 0;
                do {
                        if ($count == 0) echo("$letter ");
                        if (($count > 0) and ($count < $widthMid))  echo("  ");
                        if ($count == $widthMid) echo("$letter ");
                        if (($count > $widthMid) and ($count < $width))  echo("  ");
                        if ($count == $width) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");

        }
       

       

//define letter parts: three quarters 
        function threeQuarters($letter, $height, $width, $widthThreeQuarters){
                $count = 0;
                do {
                        if (($count > 0) and ($count < $widthThreeQuarters))  echo("  ");
                        if ($count == $widthThreeQuarters) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");

        }
       

       

//define letter parts: three quarters plus 1
        function threeQuartersPlusOne($letter, $height, $width, $widthThreeQuarters){
                $count = 0;
                do {
                        if (($count >= 0) and ($count < $widthThreeQuarters))  echo("  ");
                        if ($count == ($widthThreeQuarters + 1)) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");

        }
       

       

//define letter parts: left edge and three quarters 
        function edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters){
                $count = 0;
                do {
                        if ($count == 0) echo("$letter ");
                        if (($count > 0) and ($count < $widthThreeQuarters))  echo("  ");
                        if ($count == $widthThreeQuarters) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");

        }
       

       

//define letter parts: left edge only
        function leftEdge($letter, $height, $width){
                $count = 0;
                do {
                        if ($count == 0) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");
        }
       

       

//define letter parts: right edge only
        function rightEdge($letter, $height, $width){
                $count = 0;
                do {
                        if ($count < $width)  echo("  ");
                        if ($count == $width) echo("$letter ");
                        $count++;                     
                        }
                while ($count <= $width);
               echo("\n");
        }
       

       

//define letter parts: center vertical bar
        function centerLine($letter, $height, $width, $widthMid){
                $count = 0;
                do {
                        if ($count < $widthMid)  echo("  ");
                        if ($count == $widthMid) echo("$letter ");
                        $count++;
                        }
                while ($count <= $width);
               echo("\n");
        }
 

Edit - History - Print - Recent Changes - Search
Page last modified on February 12, 2006, at 04:41 PM