クラス を使用することで、モバイルデバイスの傾きに応じてキャンバス内を移動する円の集合を作成できます。 このスケッチを表示するには、モバイルデバイスでこのページを開く必要があります。
シェイクしてボールが跳ねる: Revised by Kasey Lichtlyter. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!