deviceMoved() 関数は、スケッチを表示しているモバイルデバイスが動いたときに実行されます。 この例では、accelerationX、accelerationY、および accelerationZ の値が円の位置とサイズを設定します。 これはモバイルデバイスでのみ機能します。
モバイルデバイスの動き: 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: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!