Page 356 - Tasarım Beceri Atölyeleri Öğretmen El Kitabı
P. 356
ctx.stroke();
}
//20-step Degree
ctx.lineWidth=5;
for (var i = 0; i <= 100; i+=20)
{
var y = -(height - radius)*i/100 - radius - 5;
ctx.beginPath();
ctx.lineTo(x, y);
ctx.lineTo(x - 25, y);
ctx.stroke();
ctx.font=”20px Georgia”;
ctx.textBaseline=”middle”;
ctx.textAlign=”right”;
ctx.fillText(i.toString(), x - 35, y);
}
// shape
ctx.lineWidth=16;
ctx.beginPath();
348