We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第1910天 使用canvas画一个小汽车
3+1官网
我也要出题
The text was updated successfully, but these errors were encountered:
// 车头 ctx.quadraticCurveTo(180, 60, 135, 60);
// 车顶 ctx.arc(95,60,40,0,Math.PI,true);
// 车尾 ctx.quadraticCurveTo(30, 75, 20, 100)
ctx.fillStyle="pink"; ctx.fill();
// 窗户 ctx.beginPath(); ctx.fillStyle="skyblue"; ctx.fill(); ctx.fillRect(75,45,40,20)
// 前轮 ctx.beginPath(); ctx.moveTo(40,100); ctx.arc(55,100,15,0,Math.PI*2,true); ctx.fillStyle="#000"; ctx.fill();
// 后轮 ctx.beginPath(); ctx.moveTo(130,100) ctx.arc(145,100,15,0,Math.PI*2,true); ctx.fillStyle="#000"; ctx.fill();
// 车灯 ctx.beginPath(); ctx.arc(165,80,5,0,Math.PI*2,true); ctx.fillStyle="yellow"; ctx.fill();
} } </script>
Sorry, something went wrong.
No branches or pull requests
第1910天 使用canvas画一个小汽车
3+1官网
我也要出题
The text was updated successfully, but these errors were encountered: