Location: PHPKode > projects > PHP Cad and Drawing Program > phpcad/functions/scrolltext.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//  Used for movies, works.
//
function scrolltext($ttime,$ttfont,$ttext,$fontsize,$scale,$x,$y)
{
    global $time;
    global $image;
    $ntime=$time-$ttime;
    if ($ntime>10 and $ntime<234) {
        $red  = floor(($ntime-10)*1);
        $grn  = floor(($ntime-10)*1);
        $blu  = floor(($ntime-10)*1);
        $ttfont=getcwd() . "/ttf/$ttfont";
        $a = ImageColorAllocate($image,$red,$grn,$blu);
        $fontsize=$fontsize*$scale/10;
        Imagettftext($image,$fontsize,$dir,5*$scale+1,5*$scale+$ntime-10,$a,$ttfont,$ttext);
    }
}
BBBBBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCC
function scrolltext($ttime,$ttfont,$ttext,$fontsize,$scale,$x,$y) {}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
$dirlist= array("NA");
$lenlist= array("NA");
$txtitem="";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program