Page 355 - Tasarım Beceri Atölyeleri Öğretmen El Kitabı
P. 355
ctx.clearRect(-canvas_width/2, -350, canvas_width, canvas_height);
if(ws != null)
{
ctx.strokeStyle=”blue”;
ctx.fillStyle=”blue”;
}
else
{
ctx.strokeStyle=”Gray”;
ctx.fillStyle=”Gray”;
}
//5-step Degree
var x = -width/2;
ctx.lineWidth=2;
for (var i = 0; i <= 100; i+=5)
{
var y = -(height - radius)*i/100 - radius - 5;
ctx.beginPath();
ctx.lineTo(x, y);
ctx.lineTo(x - 20, y);
347