i am developing a live wallpaper, i am new and stuck at this problem, can anyone tell me How to draw images on canvas one by one like a slideshow with fadein and fadeout animation.
i am able to perform this animations on views and layouts but i have no idea to run them on canvas. please help!
i am developing a live wallpaper, i am new and stuck at this problem,
Share
Not sure if you mean
javaorjavascriptSome clues about fade-in solution:
Consider using requestAnimationFrame instead of timers
Calculate real delta using (new Date).getTime()
Play with some easing equations – for example:
alpha = Math.sin(0.5 * Math.PI * delta / duration)