What it does
ParticlesFrequency takes ID (an integer), and answers a float. That is the first of 2 forms.
Syntax
1
ParticlesFrequency(ID integer) → float2
ParticlesFrequency(ID integer, freq float)Parameters
| Name | Type | In forms |
|---|---|---|
| ID | integer | all |
| freq | float | 2 |
What each form returns
| 1 | ParticlesFrequency(1) | float |
| 2 | ParticlesFrequency(1, 1.0) | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(ParticlesFrequency(1)) Sync()LOOPForm 2, you choose the id yourself
ParticlesFrequency(1, 1.0)DO Sync()LOOPParticlesFrequency is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.