deep.js
// This function draws a concave star icositetragon at the specified game point.

This function draws a concave star icositetragon at the specified game point.
This function draws a concave star icositetragon at the specified game point .
function Draw_Icositetragon(gx, gy, size, size2, rot, border)
{
	var sc = ptos(gx, gy);
	var sa_ = 2 * Math.PI / 24;
	context.save();
	context.lineJoin = "round";
	context.lineWidth = 3.0 * Zoom_Fctr;
	context.strokeStyle = Make_Color(border.r, border.g, border.b);
	context.fillStyle = Make_Color(_DBF.r, _DBF.g, _DBF.b);
	context.translate(sc.x, sc.y);
	context.beginPath();
	context.moveTo(size * Math.cos(0 + rot), size * Math.sin(0 + rot));
	for (var i = 1; i <= 24; i++) {
		if (i % 2 == 0)
		{
			context.lineTo(size2 * Math.cos(i * sa_ + rot), size2 * Math.sin(i * sa_ + rot));
		}
		else
		{
			context.lineTo(size * Math.cos(i * sa_ + rot), size * Math.sin(i * sa_ + rot));
		}
	}
	context.lineTo(size * Math.cos(25 * sa_ + rot), size * Math.sin(25 * sa_ + rot));
	context.closePath();
	context.fill();
	context.stroke();
	context.restore();
}
function Draw_Icositetragon ( gx , gy , size , size2 , rot , border ) { var sc = ptos ( gx , gy ) ; var sa_ = 2 * Math . PI / 24 ; context . save ( ) ; context . lineJoin = "round" ; context . lineWidth = 3.0 * Zoom_Fctr ; context . strokeStyle = Make_Color ( border . r , border . g , border . b ) ; context . fillStyle = Make_Color ( _DBF . r , _DBF . g , _DBF . b ) ; context . translate ( sc . x , sc . y ) ; context . beginPath ( ) ; context . moveTo ( size * Math . cos ( 0 + rot ) , size * Math . sin ( 0 + rot ) ) ; for ( var i = 1 ; i <= 24 ; i ++ ) { if ( i % 2 == 0 ) { context . lineTo ( size2 * Math . cos ( i * sa_ + rot ) , size2 * Math . sin ( i * sa_ + rot ) ) ; } else { context . lineTo ( size * Math . cos ( i * sa_ + rot ) , size * Math . sin ( i * sa_ + rot ) ) ; } } context . lineTo ( size * Math . cos ( 25 * sa_ + rot ) , size * Math . sin ( 25 * sa_ + rot ) ) ; context . closePath ( ) ; context . fill ( ) ; context . stroke ( ) ; context . restore ( ) ; }
This function draws a concave star icositetragon at the specified game point.
This function draws a concave star icositetragon at the specified game point .