shadowColor プロパティ
実行結果
コード
/* ぼかしの範囲を定義 */ ctx.shadowBlur = 10; /* ぼかしの色を定義 */ ctx.shadowColor = "#990000"; /* 円を塗る */ ctx.beginPath(); ctx.arc(50, 50, 35, 0, Math.PI*2, false); ctx.fillStyle = "#cc0000"; ctx.fill();
/* ぼかしの範囲を定義 */ ctx.shadowBlur = 10; /* ぼかしの色を定義 */ ctx.shadowColor = "#990000"; /* 円を塗る */ ctx.beginPath(); ctx.arc(50, 50, 35, 0, Math.PI*2, false); ctx.fillStyle = "#cc0000"; ctx.fill();