Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
キャンバスと JS でルーレット ホイールを作成しました。ホイールには幅 30 度の 12 個のセグメントがあります。
ホイールがホイール セグメントを超えて回転するときにサウンドが再生されるようにしたいと考えています。モジュラスを使用しようとしましたが、機能しませんでした。ヒントやアドバイスはありますか?
if (rotation % 30 == 0) { playSound(); }