Timing and Animations


Timing and Animations

Time and Date

CindyScript has an internal clock that provides access to the current date and time. The clock can be also used to synchronize some automated animations. Furthermore, an operator is provided that is synchronized with the current timestamp of a running animation or physics simulation.

Accessing time: time()

Description: This operator returns a list [h,m,s,ms] of four integers. The four values correspond to "hour," "minute," "second," "millisecond" on the computer's clock.

Example: The following code produces a simple clock on a Cinderella view. The variable t contains the time information. The subsequent code is used to produce a clocklike drawing on the view. An auxiliary function p(w) is defined that produces points on the unit circle. The code must be placed in the "Tick" section of CindyScript in order for it to run continuously.




Accessing date: date()

Description: This operator returns a list [y,m,d] of three integers. The three values correspond to "year," "month," and "day" on the computer's calendar.

Timestamp: seconds()

Description: Returns the time elapsed since the last evaluation of resetclock(). The time is scaled in a way such that one unit corresponds to one second. The time's resolution is on the millisecond scale.

Resetting the internal seconds: resetclock()

Description: Resets the value of the seconds() operator.

Accessing the timestamp of a simulation: simulationtime()

Description: This operator gives a handle to the running time clock synchronized with the progression of an animation or simulation.

Caution: This operator is still experimental.

Pause the script for a specified time: wait(<real>)

Description: Will completely halt every script execution for a number of milliseconds as given by the parameter.

Example: The following code produces an acoustic jingle.


Animation Control

Starting the animation: playanimation()

Description: This statement starts the animation. Also physics simulation in CindyLab depend on running animations.

Pausing the animation: pauseanimation()

Description: This statement pauses the animation.

Stopping the animation: stopanimation()

Description: This statement stops the animation. Stopping an animation also causes the geometric elements to be restored to there original position.

Contributors to this page: Kortenkamp , Richter and Kohler .
Page last modified on Monday 05 of September, 2011 [09:10:13 UTC] by Kortenkamp.

The content on this page is licensed under the terms of the License.

free viagra samplehentai girlsmature pussymilfseeker cialis samplescam clip movie nude webcammother incest order viagra online cialis ukanime rapeparis hilton phone numbers viagra alternatives cialis forum cialis free samplehot girls in pantiesmonster of cocks discount cialis cilias free viagra samplesfree chat rooms cilia structurefree cartoon sex comics buy cialis order viagrafree adult videosplump girl gallerypantyhose gallerycum on her face cheapest cialisbisexual moviestampa bukakehuge black cock thumbnails buy cialis onlineporn star cialis drugwomen having sex cheap generic viagra alternative to viagra natural viagra cheap viagraoral sexteen webcam strip videosnude spanish girlserotic sex cams movies viagra side effectscartoon adultdisney sex animenude blonde hairygang bang swinger cialis viagrabisexual free moviesgay twinkswebcam chat live xxxyoung teens order cialislatina girls thongscum loversjapanese girl viagra cheapyoung japanese girlsmr chews asian beavergangbang squadshoshone indiansmature wiveslive webcam chat girlsfree ebony viagra on lineasian ladyboysteen boys viagra pillsself bondage techniques cailisincest familyfree ebony cheap cialisgay amateur cialis genericbusty asian viagra onlinemature breasts viagra for women free viagrabig boobies cialis generic viagragloryhole gaylatinas in thongs female viagraindian tits viagra 6 free samplesamateur upskirt viagra alternativefree xxx video cialis online discountgalleries of teen girls cialis dosage cheap generic cialisparis hilton pornopussy cat dollsbrutal sexgay peopleblack milfsno tits discount viagrablonde hairy pussyshemale animefree hardcore moviesmom strips for sonfat titscelebrity legsdouble anal levitra vs cialis cialis tadalafil cialis cheapgay bdsmcelebrities exposed viagra generic alternatives to viagra viagra canadabestialitypink porn stars viagra jokesclips of teen sexchicks suck horse cock online viagrasex with horsespainful analglory holes floridafree american bukkake cialis online buy viagrabig cock cum free cialisteen gay porn cialis side effects herbal viagra best price viagra purchase cialis cialis soft tabs cialis vs viagrafree fat girl webcamfree porn movie clipsoral penis suckingebony hardcore viagra pricepantyhose crossed legs cialis and levitralesbiennesblonde boobs buy viagra online