ParticlesVisible

Family: Particles · 2 forms

What it does

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

Syntax

1
ParticlesVisible(ID integer) → integer
2
ParticlesVisible(ID integer, visible integer)

Parameters

NameTypeIn forms
IDintegerall
visibleinteger2

What each form returns

1ParticlesVisible(1)integer
2ParticlesVisible(1, 1)nothing

Example · generated

Form 1, the command hands back the id

DO  Print(ParticlesVisible(1))  Sync()LOOP

Form 2, you choose the id yourself

ParticlesVisible(1, 1)DO  Sync()LOOP

ParticlesVisible 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