diff --git a/system/demo/add.png b/system/demo/add.png new file mode 100644 index 0000000..097c6e4 --- /dev/null +++ b/system/demo/add.png Binary files differ diff --git a/system/demo/demo.html b/system/demo/demo.html index 0bb0b2d..c627cbf 100644 --- a/system/demo/demo.html +++ b/system/demo/demo.html @@ -240,7 +240,7 @@

水やりの教育コーナー

植物は朝や夕方に水をあげると効果的です。昼間は水が蒸発しやすく、根に届きにくくなります。

水のやり過ぎは根腐れの原因になります。

- 朝の水やり + 朝の水やり
@@ -257,15 +257,15 @@

野菜ごとの水やりポイント

- トマト + トマト

トマト:乾燥に強い。根が深いので週に2〜3回たっぷり。

- キュウリ + キュウリ

キュウリ:毎日必要。水を切らすと苦味が出る。

- ナス + ナス

ナス:湿った土を好む。1日2回が理想。

@@ -296,10 +296,14 @@ let backZoneEnterTime = null; const waterImg = new Image(); - waterImg.src = "water.png"; + waterImg.src = "water.png"; const vegetableImg = new Image(); - vegetableImg.src = "vegetable.png"; + vegetableImg.src = "vegetable.png"; + + const handIcon= new Image(); + handIcon.src="hand_icon.png"; + let handInZoneA = false; let handInZoneB = false; @@ -315,11 +319,9 @@ return flippedX >= zoneLeft && flippedX <= zoneRight; } - function drawWrist(x, y, ctx) { - ctx.beginPath(); - ctx.arc(x, y, 10, 0, Math.PI * 2); - ctx.fillStyle = 'rgba(255,0,0,0.7)'; - ctx.fill(); + function drawWrist(x, y, ctx) { + const iconSize = 40; + ctx.drawImage(handIcon, x - iconSize / 2, y - iconSize / 2,iconSize,iconSize); } let net;