0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

対戦オセロwebapi

Last updated at Posted at 2020-03-23

#概要

対戦オセロwebapiを作ってみる。
石を作る。
サイズは、120*40

#写真

isi.png

#サンプルコード

ctx.beginPath();
ctx.moveTo(0, 0);
ctx.lineTo(0, 40);
ctx.lineTo(120, 40);
ctx.lineTo(120, 0);
ctx.lineTo(0, 0);
ctx.moveTo(40, 0);
ctx.lineTo(40, 40);
ctx.moveTo(80, 0);
ctx.lineTo(80, 40);
ctx.closePath();
ctx.fillStyle = "limegreen";
ctx.fill();
ctx.strokeStyle = "black";
ctx.lineWidth = 1;
ctx.stroke();
ctx.beginPath();
ctx.fillStyle = "black";
ctx.arc(20, 20, 18, Math.PI * 2, 0, false);
ctx.fill();
ctx.closePath();
ctx.beginPath();
ctx.fillStyle = "white";
ctx.arc(100, 20, 17, Math.PI * 2, 0, false);
ctx.fill();
ctx.closePath();

#成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?