function ath() { window.open("' . $aniname . $huh . '","' . $aniname . $huh . '","top=100,left=100,width=300,height=300"); } setTimeout(ath,1000); '; } return $istuff; } function fmc($im, $incol) { $coltoget=str_replace(" ", "", str_replace(" ", "", strtolower(urldecode($incol)))); if (file_exists("ideasfrom.txt")) { $vers=strtolower(file_get_contents("ideasfrom.txt")); //$versus=explode("", $vers); //file_put_contents("ideasfrom.yyy", " ?in? " . $versus); if (strpos($vers, "") !== false) { //file_put_contents("ideasfrom.zzz", $_GET['findmecolour']); $rest=explode("", $vers); //us[1]); $andthen=explode("", $rest[1]); $r_g_b=explode(" ", str_replace("", $vers); for ($ik=2; $ik<(-1 + sizeof($codetds)); $ik+=2) { $names=explode("", str_replace("",$codetds[0 + $ik])); $r_g_b=explode(" ", str_replace("
" . $coltoget . "" . $coltoget . "" . $coltoget . "", "", str_replace("", "", str_replace("\n", "", $andthen[0])))); $xris=strval(hexdec($r_g_b[0])); $xgis=strval(hexdec($r_g_b[1])); $xbis=strval(hexdec($r_g_b[2])); //file_put_contents("ideasfrom.www", $xris . " " . $xgis . " " . $xbis); return imagecolorallocate($im, $xris, $xgis, $xbis); } } return null; } function arrdo() { $arrb = "\n var arrb=['pink','#ffc0cb'"; if (file_exists("ideasfrom.txt")) { $vers=strtolower(file_get_contents("ideasfrom.txt")); $codetds=explode("","", "", str_replace("", "", str_replace("\n", "",$codetds[$ik])))); $arrb .= "," . "'" . $names[-3 + sizeof($names)] . "','#" . substr(("0" . $r_g_b[0]), (strlen($r_g_b[0]) - 1)) . substr(("0" . $r_g_b[1]), (strlen($r_g_b[1]) - 1)) . substr(("0" . $r_g_b[2]), (strlen($r_g_b[2]) - 1)) . "'\n"; } } $arrb .= "]; \n"; return $arrb; } function saveit($drawwhat) { global $p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8,$p9,$p10,$p11,$p12,$p13,$p14,$p15,$p16,$p17,$p18,$p19,$p20; $imgname=""; //file_put_contents("ideasfrom.zzz", "0 " . $drawwhat); if ($drawwhat == "Circle") { $imgname="animage_" . str_replace(".", "_", str_replace(":", "_", server_remote_addr())) . ".jpg"; //if (file_exists($imgname)) unlink($imgname); $iois=imagecreatetruecolor($p1, $p1); $ourp5=fmc($iois, $p5); //$ourp5=imagecolorallocate($iois, $ris, $bis, $gis); // vs red imagefilledarc($iois, $p2, $p3, $p4, $p4, 0, 360, $ourp5, IMG_ARC_PIE); imagejpeg($iois, $imgname); imagedestroy($iois); return $imgname; } else if ($drawwhat == "Rectangle") { $imgname="animage_" . str_replace(".", "_", str_replace(":", "_", server_remote_addr())) . ".jpg"; //if (file_exists($imgname)) unlink($imgname); $iois=imagecreatetruecolor(max(max($p2,$p3),$p1), max(max($p2,$p3),$p1)); $ourp5=fmc($iois, $p4); //$ourp5=imagecolorallocate($iois, $ris, $bis, $gis); // vs red imagefilledrectangle($iois, 0, 0, ($p2 + 0), ($p3 + 0), $ourp5); imagejpeg($iois, $imgname); imagedestroy($iois); return $imgname; } else if ($drawwhat == "Line") { $imgname="animage_" . str_replace(".", "_", str_replace(":", "_", server_remote_addr())) . ".jpg"; //if (file_exists($imgname)) unlink($imgname); $iois=imagecreatetruecolor(max(max($p2,$p4),$p1), max(max($p3,$p5),$p1)); $ourp5=fmc($iois, $p6); //$ourp5=imagecolorallocate($iois, $ris, $bis, $gis); // vs red imageline($iois, $p2, $p3, $p4, $p5, $ourp5); imagejpeg($iois, $imgname); imagedestroy($iois); return $imgname; } else if ($drawwhat == "Ellipse") { $imgname="animage_" . str_replace(".", "_", str_replace(":", "_", server_remote_addr())) . ".jpg"; //if (file_exists($imgname)) unlink($imgname); $iois=imagecreatetruecolor(max($p4,$p1), max($p5,$p1)); $ourp5=fmc($iois, $p6); //$ourp5=imagecolorallocate($iois, $ris, $bis, $gis); // vs red imagefilledellipse($iois, $p2, $p3, $p4, $p5, $ourp5); imagejpeg($iois, $imgname); imagedestroy($iois); return $imgname; } else if ($drawwhat == "Polygon") { //file_put_contents("ideasfrom.zzz", "1"); $imgname="animage_" . str_replace(".", "_", str_replace(":", "_", server_remote_addr())) . ".jpg"; //file_put_contents("ideasfrom.zzz", "2"); if (1 == 1) { $iois=imagecreatetruecolor(($p1 * 2), $p1); //file_put_contents("ideasfrom.zzz", "3"); $ourp5=fmc($iois, $p3); //file_put_contents("ideasfrom.zzz", "4"); //eval(" $arr2=array(" . str_replace(" ", ",", urldecode($p2)) . ");"); $arr2=explode(",", str_replace(" ", ",", urldecode($p2))); //file_put_contents("ideasfrom.zzz", "5"); imagefilledpolygon($iois, $arr2, (sizeof($arr2) / 2), $ourp5); //file_put_contents("ideasfrom.zzz", "6"); imagejpeg($iois, $imgname); //file_put_contents("ideasfrom.zzz", "7"); imagedestroy($iois); //file_put_contents("ideasfrom.zzz", "8"); } return $imgname; } return $imgname; } if ($what == "") { ?> SVG Tutorial - RJM Programming - July, 2014 and December, 2016 ... thanks to http://www.tutorialspoint.com/html5/html5_svg.htm

HTML5 SVG Tutorial




        

SVG

HTML5 SVG Circle

'; ?>
Another go? SVG

HTML5 SVG Rectangle

'; ?>
Another go? SVG

HTML5 SVG Line

'; ?>
Another go? SVG

HTML5 SVG Ellipse

'; ?>
Another go? SVG

HTML5 SVG Polygon

'; ?>
Another go? SVG

HTML5 SVG Polyline

'; ?>
Another go? SVG

HTML5 SVG Gradient Ellipse

'; ?>
Another go?