Particle StylesA static style for a particle (i.e. a style that will not change during the execution of the simulation) is specified using one of the predefined Ejs constants:
To specify a style that changes in run-time, you’ll need to declare a variable of type int, associate it to the corresponding element property, and then change the variable according to your program’s logic. The integer values equivalent to each style are specified in the list above. |