Particles
Add a particle emitter.
Particlesâ

Editorâ

Emit rateâ
How often new particles will be spawned. 0 - 100
Minimum sizeâ
The minimum size of new particles.
Maximum sizeâ
The maximum size of new particles.
URLâ
The URL of a custom particle image; if none is provided then the default particle image (a grey square) will be used.
Color 1 and Color 2â
The initial color of new particles depends on the value of these parameters - the color will be somewhere in the range between the two given colors.
Scripting Propertiesâ
Scripting Properties {.tabset}â
urlâ
String; Links must be https:// and must finish with an extension such as .jpg/.gif/.png.
If you set an URL, the custom colors color1 and color2 will be ignored.
get()â
feature.get('url')
// returns: "https://..."
set()â
feature.set({'url':"https://www.myurl.com/file.png"})
defaultâ
""
emitRateâ
Double; Must be a number between 0 and 100.
get()â
feature.get('emitRate')
// returns: 50.0
set()â
feature.set({'emitRate':52})
defaultâ
50
minSizeâ
Double; Must be a number between 0 and 1.
get()â
feature.get('minSize')
// returns: 0.5
set()â
feature.set({'minSize':0.5})
defaultâ
0.5
maxSizeâ
Double; Must be a number between 0 and 1.
get()â
feature.get('maxSize')
// returns: 0.5
set()â
feature.set({'maxSize':0.5})
defaultâ
0.5
color1â
String- hexadecimal;
get()â
feature.get('color1')
// returns: "#4cb844"
set()â
feature.set({'color1':"#4cb844"})
defaultâ
#000000
color2â
String- hexadecimal;
get()â
feature.get('color2')
// returns: "#4cb888"
set()â
feature.set({'color2':"#4cb844"})
defaultâ
"#000000"
typeâ
String;
get()â
feature.get('type')
/* or */
feature.type
// returns: 'particles'
Deprecationsâ
for information on versioning click here
5.7.0â
The particle feature can now be rotated in the X-axis instead of being hard-coded to 90 deegres. This means that the next time a particle system is edited, it will use the X-axis rotation set by the owner which most likey look weird, but can be easily corrected at that time.