arcの読み方
javascriptで利用されるメソッドの1つである「arc」の読み方を掲載してます。
読み⽅
「アーク」と読みます。
英訳
「円弧」という意味があります。
arceとは
javascriptで、canvasタグで円を描写するメソッドとなります。
/** html **/
<canvas id="cvs"></canvas>
/** js **/
// 2D図形を扱うことを宣言
let ctx = document.getElementById('cvs').getContext('2d');
// 塗りつぶし色
ctx.fillStyle = "#40b812";
// 円 塗りつぶし
ctx.beginPath();
ctx.arc(130, 50, 20, 0, Math.PI * 2, false);
ctx.fill();
実行結果
-
前の記事
beginPathの読み方 2020.10.14
-
次の記事
Yellowfin BIの読み方 2020.10.14