-
function canvas1(){ var canvas1 = document.getElementById("canvas1"); var context1 = canvas1.getContext("2d"); canvas1.width = 1000; canvas1.height = 600; context1.fillStyle = '#f00'; outTime(1,0*80+10,context1); outTime(2,1*80+10,context1); outTime(10,2*80+10,context1); outTime(2,3*80+10,查看全部
-
function canvas1(){ var canvas1 = document.getElementById("canvas1"); var context1 = canvas1.getContext("2d"); canvas1.width = 500; canvas1.height = 500; context1.lineStyle = '#f00'; for(i=0;i < 5;i++){ context1.beginPath(); context1.arc(50+i*100,400,40,0,2*Math.PI); context1.closePath(); context1.stroke(); } }查看全部
-
function canvas1(){ var canvas1 = document.getElementById("canvas1"); var context1 = canvas1.getContext("2d"); canvas1.width = 500; canvas1.height = 500; context1.fillStyle = '#f00'; for(i=0;i < 5;i++){ context1.beginPath(); context1.arc(50+i*100,400,40,0,2*Math.PI); context1.closePath(); context1.fill(); } }查看全部
-
function canvas1(){ var canvas1 = document.getElementById("canvas1"); var context1 = canvas1.getContext("2d"); canvas1.width = 500; canvas1.height = 500; context1.fillStyle = '#f00'; for(i=0;i < 5;i++){ context1.arc(50+i*100,400,40,0,2*Math.PI); context1.fill(); } }查看全部
-
function canvas2(){ var canvas1 = document.getElementById("canvas1"); if(canvas1.getContext('2d')){ alert('你的浏览器支持canvas'); } else{ alert('你的浏览器不支持canvas'); } }查看全部
-
<canvas id="canvas1" width="500" height="500">你的浏览器不支持canvas</canvas> canvas1.width = 500; canvas1.height = 500;查看全部
-
var canvas1 = document.getElementById("canvas1"); var context1 = canvas1.getContext('2d'); <canvas id="canvas1" width="500" height="500"></canvas>查看全部
-
太酷了查看全部
-
本节内容核心2查看全部
-
本节知识点。查看全部
-
con查看全部
-
draw a line查看全部
-
if(canvas.getContext('2d')){//判断浏览器是否支持canvas var context = canvas.getContext('2d'); }else{ alert(""); }查看全部
-
我做的动画已经完成了,可是小球的动画没实现!查看全部
-
画点阵数字查看全部
举报
0/150
提交
取消