< ! doctype html >
< html >
< head > < / head >
< body >
< canvas id="canvas" width="1000" height="1000" style="background:#000" >
不支持呀,不支持.
< / canvas >
< script >
var cxt=document.getElementByIdx_x("canvas").getContext("2d");
//畫軌道
function drawPathWay(){
for(var i=0;i<8;i++){
cxt.beginPath();
cxt.lineWidth=1;
cxt.strokeStyle="white";
cxt.arc(500,500,50*(i+1),0,360,false);
cxt.stroke();
cxt.closePath();
}
}
drawPathWay();
//畫球的通用方法
function draw(x,y,r,v,bcolor,ecolor){
this.x=x;
this.y=y;
this.r=r;
< html >
< head > < / head >
< body >
< canvas id="canvas" width="1000" height="1000" style="background:#000" >
不支持呀,不支持.
< / canvas >
< script >
var cxt=document.getElementByIdx_x("canvas").getContext("2d");
//畫軌道
function drawPathWay(){
for(var i=0;i<8;i++){
cxt.beginPath();
cxt.lineWidth=1;
cxt.strokeStyle="white";
cxt.arc(500,500,50*(i+1),0,360,false);
cxt.stroke();
cxt.closePath();
}
}
drawPathWay();
//畫球的通用方法
function draw(x,y,r,v,bcolor,ecolor){
this.x=x;
this.y=y;
this.r=r;