Timer:AlternateSim
From Data Realms Wiki
(Difference between revisions)
Beautifybot (Talk | contribs) m (updating function page) |
Beautifybot (Talk | contribs) m (updating function page) |
||
Line 5: | Line 5: | ||
|description = | |description = | ||
Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it. This is useful for blink animations etc. | Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it. This is useful for blink animations etc. | ||
- | + | }} | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | }} | + |
Latest revision as of 00:56, 28 June 2012
Function | |
---|---|
Syntax | AlternateSim( * An int with the alternating period in ms. The time specified here is how long it will take for the switch to alternate. ) |
Description: | |
Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it. This is useful for blink animations etc. | |
Returns | Whether the elapsed time is in the first state or not. |
Example | |
---|---|
Description | Placeholder! |
Code |
|
Output | Placeholder! |