Location: PHPKode > projects > PHP Cad and Drawing Program > functions/arc.inc
AAAAAAAAAAAAAAAAAAAAAAAAA
//
//  ** texteditor ** 2D
//  Used to make a curved Arc
//  sangle = start angle (right 0, down 90, left 180, up 270)
//  eangle = end angle
//  radius
//
function arc($image, $radius, $sangle, $eangle, $color, $scale, $x, $y)
{
    $red  = hexdec(substr($color,0,2));
    $grn  = hexdec(substr($color,2,2));
    $blu  = hexdec(substr($color,4,2));
    $zcolor = ImageColorAllocate($image,$red,$grn,$blu);
    $x=$x*$scale;
    $y=$y*$scale;
    $radius=$radius*$scale*2;
    for($i=0; $i<=$radius; ++$i) {
        ImageArc($image,$x,$y,$i,$i,$sangle,$eangle,$zcolor);
    }
}
BBBBBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCC
function arc($image, $radius, $sangle, $eangle, $color, $scale, $x, $y) {}
DDDDDDDDDDDDDDDDDDDDDDDD
$inthemenu = "no";
$dirlist= array("NA");
$lenlist= array("NA");
$txtitem="AAAAAA";
EEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Return current item: PHP Cad and Drawing Program