リファレンス isLooping()

isLooping()

trueを返すのは描画ループが実行中の場合で、 実行中でない場合はfalseを返します。

デフォルトでは、draw()は1秒間に60回 実行しようとします。noLoop()を呼び出すと、 draw()の繰り返しが停止します。描画ループは loop()を呼び出すことで再開できます。

isLooping()関数は、スケッチがループ中かどうかを確認するために 使用できます。例えば、isLooping() === trueのように使います。

実例

リターン

Boolean:
This page is generated from the comments in src/core/structure.js . Please feel free to edit it and submit a pull request!

関連するリファレンス