animation/AnimationTest.qml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import QtQuick
import Quickshell
PanelWindow {
id: root
width: 32
height: 32
visible: true
color: "black"
anchors {
right: true
bottom: true
}
SpriteSequence {
id: anim
anchors.centerIn: parent
width: 64
height: 64
running: true
interpolate: false
Sprite {
name: "idle"
source: "WhiteCatRun.png"
frameCount: 6
frameWidth: 32
frameHeight: 32
frameRate: 12
}
}
}
|