deep.js
// This function draws an upgrade box.

This function draws an upgrade box.
This function draws an upgrade box .
function Draw_Upgrade(x, y, tank, width, height, color)
{
	var b = Borderize(color);
	var s = stogs(x + width / 2, y + height / 2);
	context.save();
	context.fillStyle = Make_Color(color.r, color.g, color.b);
	context.lineJoin = "round";
	context.lineWidth = 4.1;
	Round_Rect(context, x, y, width, height, {tl: 5, tr: 5, bl: 5, br: 5}, true, false);
	context.rect(100, 100, width, height);
	context.clip();
	Draw_Player(s.x, s.y, -15, _BLUE, Iteration, 0, tank, "", "", false, false, 0);
	context.restore();
	context.strokeStyle = Make_Color(b.r, b.g, b.b);;
	Round_Rect(context, x, y, width, height, {tl: 5, tr: 5, bl: 5, br: 5}, false, true);
	Draw_Text_S(C_NAMES[tank], x + width / 2, y + width / 1.15, 10, "center", 3);
}
function Draw_Upgrade ( x , y , tank , width , height , color ) { var b = Borderize ( color ) ; var s = stogs ( x + width / 2 , y + height / 2 ) ; context . save ( ) ; context . fillStyle = Make_Color ( color . r , color . g , color . b ) ; context . lineJoin = "round" ; context . lineWidth = 4.1 ; Round_Rect ( context , x , y , width , height , { tl : 5 , tr : 5 , bl : 5 , br : 5 } , true , false ) ; context . rect ( 100 , 100 , width , height ) ; context . clip ( ) ; Draw_Player ( s . x , s . y , - 15 , _BLUE , Iteration , 0 , tank , "" , "" , false , false , 0 ) ; context . restore ( ) ; context . strokeStyle = Make_Color ( b . r , b . g , b . b ) ; ; Round_Rect ( context , x , y , width , height , { tl : 5 , tr : 5 , bl : 5 , br : 5 } , false , true ) ; Draw_Text_S ( C_NAMES [ tank ] , x + width / 2 , y + width / 1.15 , 10 , "center" , 3 ) ; }
This function draws an upgrade box.
This function draws an upgrade box .