Comments: I think you have already heard about HTML5. You can do a lot using HTML5. I will share with you the following code to draw a tank shape using html5, for more information, see
The Code is as follows:
Var canvas = document. getElementById ('mycanvas ');
Var ctx = canvas. getContext ('2d ');
Ctx. fillStyle = "#99FF66 ";
Ctx. fillRect (10, 10, 15, 80 );
// Ctx. fillRect (10, 80, 15, 80 );
Var canvas = document. getElementById ('mycanvas ');
Var ctx = canvas. getContext ('2d ');
Ctx. fillStyle = "#99FF66 ";
Ctx. fillRect (60, 10, 15, 80 );
Var canvas = document. getElementById ('mycanvas ');
Var ctx = canvas. getContext ('2d ');
Ctx. fillStyle = "# 0033CC ";
Ctx. fillRect (26,27, 33,50 );
Ctx. fillStyle = "red ";
Ctx. beginPath ();
Ctx. arc (, Math. PI * 2, true );
Ctx. closePath ();
Ctx. fill ();
Ctx. strokeTyle = "# CCCC00 ";
Ctx. lineWidth = 2;
Ctx. moveTo (43, 52 );
Ctx. lineTo (43, 10 );
Ctx. stroke ();