$h) { $l=$h; $lw=$w/$h; $lh=1; } else if ($h>$w) { $l=$w; $lw=1; $lh=$h/$w; } else { $l=$w; $lw=1; $lh=1; } if ($tf==false && $pi!="tr" && $pi!="br") { $pb=$pb+$w-$lw; } if ($pi=="tr") {$divstyle="top:".$pa."px;right:".$pb."px";} else if ($pi=="br") {$divstyle="bottom:".$pa."px;right:".$pb."px";} else if ($pi=="bl") {$divstyle="bottom:".$pa."px;left:".$pb."px";} else {$divstyle="top:".$pa."px;left:".$pb."px";} while ($c<$l) { if ($w>$h) { $cc=$c*$w/$h; } else { $cc=$c; } if ($tf==false) {$cc=$cc*-1;} $fl.="
"; $c++; } return "
".$fl."
"; } function drawlines($s) { $fr.=drawline($s,$s/2,"tl",$s/4,0,true); $fr.=drawline($s,$s,"tl",0,0,true); $fr.=drawline($s/2,$s,"tl",0,$s/4,true); $fr.=drawline(1,$s,"tl",0,$s/2,true); $fr.=drawline($s,1,"tl",$s/2,0,false); $fr.=drawline($s,$s/2,"tl",$s/4,0,false); $fr.=drawline($s,$s,"tl",0,0,false); $fr.=drawline($s/2,$s,"tl",0,$s/4,false); return $fr; } function drawlinewrappers($n,$s) { $c=0; while ($c<$n) { $fr.="
".drawlines($s)."
\n"; $c++; } return $fr; } function dlwx($s,$n,$r) { $c=0; while ($c<$n) { $fr.="
".drawlines($s)."
\n"; $s=$s+$r; $c++; } return $fr; } function drawsimplecircle($s) { $c=0; while ($c<$s) { if ($c!=0) { if ($c>round($s/2)) { $m=$c-$s/2; } else { $m=($s/4)-sqrt(pow(($s/4)-$c,2)); $m=$m+($s/2-$c)/$c; } } else { $m=$s/2; } $fr.="
"; $c++; } return $fr; } ?> LineMaker