You've sharp eyes. It's a pentagonal approximation.
To skip the math, I found a pentagon in Wikipedia and drew it as an
image in my canvas. Then I wrote lines over it and fiddled them to
cover the Wiki drawing. When they looked fairly pentagonish, I deleted
the image. If you shrink the second circle in the radial gradient, you
can get a good view of the errors.
Hi All,
This is a testing tool to show a pentagon of various sizes and colors.
I am using IE and have not tested it using other browsers. The google
address
for drawing charts for this and other geometric shapes is:
http://code.google.com/apis/chart/
JS sample code is:
<HTML><HEAD><TITLE>Test Form 1</TITLE>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252">
<META content="MSHTML 6.00.2800.1589" name=GENERATOR></HEAD>
<BODY text=white bgColor=#0000aa<H1 align="center"><FONT
face="comic Sans MS"><TR>
<!-- The source is:
http://code.google.com/apis/chart/ -->
<!-- This shape is a pentagon -->
<!-- Sample script document -->
<head>
<title>Test a Pentagon Chart form</title>
<script language="JavaScript">
function newUrl()
{
var inp1 = document.getElementById ("inp1");
var inp2 = document.getElementById ("inp2");
var inp3 = document.getElementById ("inp3");
var inp4 = document.getElementById ("inp4");
var inp5 = document.getElementById ("inp5");
var inp6 = document.getElementById ("inp6");
loc = inp1.value + "cht=" + inp2.value + "&chs=" +
inp3.value+"&chd=" + inp4.value + "&chm=" + inp5.value + "&chf=" +
inp6.value;
//alert(inp);
window.location=loc;
}
</script>
<H2>Connect To Google Draw Chart for Testing Sizes and Colors of
Pentagons </H2></TR><TD>In these window
boxes change the values that represent lengths of sides and color
<BR><BR>
The html address start is: (DO NOT CHANGE THIS) > <input
maxLength=30 value="
http://chart.apis.google.com/chart?" type="text"
id="inp1"/><BR>
A line mode selection is: (DO NOT CHANGE THIS) the "r" means radial
><input maxLength=20 value="r" type="text" id="inp2"/><BR>
A overall size of frame is: (Change the lengths 400x400) ><input
maxLength=20 value="400x400" type="text" id="inp3"/><BR>
The lengths of sides are: (Change the lengths 70,70,70,70,70,70 )
><input maxLength=20 value="t:70,70,70,70,70,70" type="text"
id="inp4"/><BR>
The color of pentagon is: (Change the color code FF0000) ><input
maxLength=20 value="B,FF0000,0,0,5" type="text" id="inp5"/><BR>
The color of background is: (Change the color code 000000) ><input
maxLength=20 value="c,s,000000" type="text" id="inp6"/><BR><BR>
<button onclick="newUrl()"> Click to get to Google a pentagon </
button><BR>
<TABLE width="100%" align=DEFAULT border=0>
<TBODY></TBODY></TABLE></FORM></FONT></BODY></HTML>
The above JS duplicates help given by others but allows some
experimentation
in the process.
bH