
打棒球简笔画
简单教程:如何画一个小女生打高尔夫球的简笔画
canvas {
backgroundcolor: f0f0f0;
}
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
function drawGolfGirl() {
// 绘制身体
ctx.beginPath();
ctx.arc(250, 300, 50, 0, 2 * Math.PI);
ctx.fillStyle = "f6c";
ctx.fill();

ctx.lineWidth = 3;
ctx.strokeStyle = "000";
ctx.stroke();
// 绘制头发
ctx.beginPath();
ctx.arc(250, 250, 40, 0, 2 * Math.PI);
ctx.fillStyle = "663300";
ctx.fill();
// 绘制眼睛
ctx.beginPath();
ctx.arc(235, 235, 5, 0, 2 * Math.PI);
ctx.fillStyle = "000";
ctx.fill();
ctx.beginPath();
ctx.arc(265, 235, 5, 0, 2 * Math.PI);
ctx.fillStyle = "000";
ctx.fill();
// 绘制嘴巴
ctx.beginPath();
ctx.arc(250, 255, 10, 0.2 * Math.PI, 0.8 * Math.PI);
ctx.strokeStyle = "f00";
ctx.lineWidth = 3;
ctx.stroke();
// 绘制高尔夫球杆
ctx.beginPath();
ctx.moveTo(250, 250);
ctx.lineTo(170, 230);
ctx.lineWidth = 5;
ctx.strokeStyle = "000";
ctx.stroke();
// 绘制高尔夫球
ctx.beginPath();
ctx.arc(170, 230, 10, 0, 2 * Math.PI);
ctx.fillStyle = "fff";
ctx.fill();
ctx.lineWidth = 2;
ctx.strokeStyle = "000";
ctx.stroke();
}
drawGolfGirl();