Particle QML Type
Represents particles manipulated by emitters and affectors More...
Import Statement: | import QtQuick.Particles 2.0 |
Properties
- alpha : real
- autoRotate : bool
- ax : real
- ay : real
- blue : real
- currentSize : real
- endSize : real
- green : real
- initialAX : real
- initialAY : real
- initialVX : real
- initialVY : real
- initialX : real
- initialY : real
- lifeLeft : real
- lifeSpan : real
- red : real
- rotation : real
- rotationVelocity : real
- startSize : real
- t : real
- update : bool
- vx : real
- vy : real
- x : real
- xDeformationVectorX : real
- xDeformationVectorY : real
- y : real
- yDeformationVectorX : real
- yDeformationVectorY : real
Detailed Description
Particle elements are always managed internally by the ParticleSystem and cannot be created in QML. However, sometimes they are exposed via signals so as to allow arbitrary changes to the particle state
Property Documentation
ImageParticle can draw colorized particles. When it does so, alpha is used as the alpha channel of the color applied to the source image.
Values are from 0.0 to 1.0.
If autoRotate is true, then the particle's rotation will be set so that it faces the direction of travel, plus any rotation from the rotation or rotationVelocity properties.
ImageParticle can draw colorized particles. When it does so, blue is used as the blue channel of the color applied to the source image.
Values are from 0.0 to 1.0.
The size in pixels that the particle image is at the end of its life. If this value is less than 0, then it is disregarded and the particle will have its startSize for the entire lifetime.
ImageParticle can draw colorized particles. When it does so, green is used as the green channel of the color applied to the source image.
Values are from 0.0 to 1.0.
The x acceleration of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The y acceleration of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The x velocity of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The y velocity of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The x coordinate of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The y coordinate of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather than determining and changing the value at a given time. Change initial values in CustomEmitters instead of the current values.
The time in seconds that the particle has left to live at the current point in time.
ImageParticle can draw colorized particles. When it does so, red is used as the red channel of the color applied to the source image.
Values are from 0.0 to 1.0.
Degrees clockwise per second that the particle image is rotated at while alive.
Inside an Affector, the changes made to the particle will only be applied if update is set to true.
The x component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.
The x component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.
The y component of the deformation vector along the X axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.
The y component of the deformation vector along the Y axis. ImageParticle can draw particles across non-square shapes. It will draw the texture rectangle across the parallelogram drawn with the x and y deformation vectors.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.