Timing and AnimationsJ時間とアニメーション時間CindyScript は現在の日付と時間にアクセスする内部時計を持っています。時計はいくつかの自動化されたアニメーションを同期するのにも用いられます。 さらに、動いているアニメーションまたはシミュレーションの現在の時刻表示を同期するのにも使います。 時刻にアクセスする:
|
![]() |
date()[y,m,d] を返します。 3つの数は、コンピュータのカレンダーの "year," "month," "day" に相当します。seconds()resetclock() の実行後に経過した時間を返します。時間は1単位が1秒になるように調整されます。時計の精度はミリ秒です。resetclock()seconds() 演算子の値をリセットします。simulationtime()wait(<real>)repeat(25,i, playtone(72+i); wait(100); )
playanimation()pauseanimation()stopanimation()
Contributors to this page: Akira Iritani
.
Page last modified on Tuesday 26 of July, 2011 [11:42:11 UTC] by Akira Iritani.
The content on this page is licensed under the terms of the License.