ParticlesAngleRad

Family: Particles · 2 forms

What it does

ParticlesAngleRad takes ID (an integer), and answers a float. That is the first of 2 forms.

Syntax

1
ParticlesAngleRad(ID integer) → float
2
ParticlesAngleRad(ID integer, angle float)

Parameters

NameTypeIn forms
IDintegerall
anglefloat2

What each form returns

1ParticlesAngleRad(1)float
2ParticlesAngleRad(1, 45.0)nothing

Example · generated

Form 1, the command hands back the id

DO  Print(ParticlesAngleRad(1))  Sync()LOOP

Form 2, you choose the id yourself

ParticlesAngleRad(1, 45.0)DO  Sync()LOOP

ParticlesAngleRad 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.

38 commands in Particles