Skip to content

Commit 4fbd6b8

Browse files
committed
サンプル : 時計の短針の計算ミスを修正
1 parent 4dfb6e1 commit 4fbd6b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/clock_smh.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
// 分針
7070
mShape.rotation = m * (360 / 60);
7171
// 短針 (短針は時間だけでなく分も角度に考慮する)
72-
hShape.rotation = h * (360 / 24 / 2) + m * (360 / 24 / 60);
72+
hShape.rotation = h * (360 / (24 / 2)) + m * (360 / 24 / 60);
7373

7474
// Stageの描画を更新
7575
stage.update();

0 commit comments

Comments
 (0)