Qt Quick Particles 예제 - 이미지 파티클
이 문서는 QML 파티클 시스템에서 어펙터를 사용하는 예제 모음입니다.

이 문서는 파티클 시스템에서 어펙터(Affector)를 사용하는 것과 관련된 간단한 QML 예제 모음입니다. 각 예제는 특정 유형이나 기능을 강조하는 작은 QML 파일입니다.
'All at once' 예제는 ImageParticle 의 여러 기능을 동시에 보여줍니다.
sprites: [
Sprite {
name: "bear"
source: "images/bear_tiles.png"
frameCount: 13
frameDuration: 120
}
]
colorVariation: 0.5
rotationVelocityVariation: 360
colorTable: "images/colortable.png"'Colored' 예제는 약간의 색상 변화를 준 간단한 ImageParticle 를 보여줍니다.
ImageParticle {
anchors.fill: parent
source: "qrc:///particleresources/star.png"
alpha: 0
alphaVariation: 0.2
colorVariation: 1.0
}'Color Table' 예제는 입자의 수명 기간 동안 색상을 설정하여 일정한 무지개 효과를 제공합니다.
source: "qrc:///particleresources/glowdot.png"
colorTable: "images/colortable.png"
sizeTable: "images/colortable.png"'Deformation'은 불가사리 입자를 회전시키고 찌그러뜨립니다.
ImageParticle {
system: sys
groups: ["goingLeft", "goingRight"]
source: "images/starfish_4.png"
rotation: 90
rotationVelocity: 90
autoRotation: true
}
ImageParticle {
system: sys
groups: ["goingDown"]
source: "images/starfish_0.png"
rotation: 180
yVector: PointDirection { y: 0.5; yVariation: 0.25; xVariation: 0.25; }
}'Rotation'은 autoRotate 속성을 시연하여, 입자가 이동하는 방향으로 회전하도록 합니다.
'Sharing'은 여러 ImageParticles가 동일한 입자를 렌더링하려고 할 때 어떤 현상이 발생하는지 보여줍니다. 다음 ImageParticle 는 ListView 내부에서 입자를 렌더링합니다:
ImageParticle {
anchors.fill: parent
system: particles
source: "images/flower.png"
alpha: 0.1
color: "white"
rotationVariation: 180
z: -1
}다음 ImageParticle 는 목록 하이라이트 내부에 배치되어, 다른 ImageParticle 들 위에 입자들을 렌더링합니다.
ImageParticle {
anchors.fill: parent
system: particles
source: "images/flower.png"
color: "red"
clip: true
alpha: 1.0
}이 ImageParticle 에서 색상과 알파 값을 설정하기 때문에, 입자가 다른 색상으로 렌더링된다는 점에 유의하십시오. 회전에 대해서는 아무것도 지정하지 않았으므로, 다른 ImageParticle 와 회전을 공유하여 두 곳 모두에서 꽃이 같은 방향으로 회전합니다. 다른 ImageParticle 에서 회전 효과를 취소할 수 있으며, 이를 위해서는 rotationVariation을 명시적으로 0으로 설정하기만 하면 됩니다.
'Sprites' 예제는 각 파티클마다 정적 이미지를 사용하는 대신, 이미지 파티클을 사용하여 애니메이션 스프라이트를 렌더링하는 방법을 보여줍니다.
© 2026 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.