Cambios Recientes - Buscar:

Information

Installation

Documentation

Feedback

 

 

Statistics

 

ElementsAboutParticleStyles

Particle Styles

 

A 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:

 

  • NONE. A single dot is drawn. (Equivalent integer: 0)
  • ELLIPSE. (Equivalent integer: 1)
  • RECTANGLE. (Equivalent integer: 2)
  • ROUND_RECTANGLE. (Equivalent integer: 3)
  • WHEEL. An ellipse with its coordinate axes. (Equivalent integer: 4)

 

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.

Editar - Historia - Imprimir - Cambios Recientes - Buscar
Última modificación de la página el 01 January 2008 a las 23h39