need a hint - small pixel animations
-
hello everyone,
as a beginner i'm looking for a hint - i need to create few basic animations (12x12 pixels, square) like rotating rainbow or else.
is there any library, or class i should start? i prefer to generate animation "on the fly" rather that load .gif image.
I need alsoe to read pixel by pixel from generated image ...thanks for any support
-
Hi @Marcin456
I think that you are look for the animation framework
http://doc.qt.io/qt-5/animation-overview.html
http://doc.qt.io/qt-5/qml-qtquick-animation.html
If you can use QML , the qml book can be a good start,
https://qmlbook.github.io/en/ch05/index.html#animations
Hope this can help,
Best regards !
-
@Marcin456 said in need a hint - small pixel animations:
Hi @mostefa ! Thanks for the reply!
It will be possible to generate animation like that:
https://cdn-shop.adafruit.com/product-videos/320x240/2026-04.mp4
?
ThanksHi @Marcin456 to be honest , i don't know how to create this kind of effect only with qt/qml,
But i think that this effect can be possible with shader,
If you have knowledge on Fragment Shader programming ,you can mix QML/GLSL to make such effect :
http://doc.qt.io/qt-5/qml-qtquick-shadereffect.html
In the following site you can have an idea about what we can do with shader
http://glslsandbox.com/e#39849.0
http://glslsandbox.com/e#39863.2
http://glslsandbox.com/e#39776.0