Tagged articles
1 articles
Page 1 of 1
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Aug 6, 2020 · Frontend Development

APNG Animation Implementation: Canvas 2D and WebGL Rendering

The article explains APNG’s file structure and decoding process, then demonstrates how to render animated PNGs on the web using both Canvas 2D (with drawImage, clearRect, getImageData, putImageData) and WebGL (via multiple textures and custom disposal/blending handling) for efficient, controllable animation playback.

APNGCanvas 2DJavaScript
0 likes · 12 min read
APNG Animation Implementation: Canvas 2D and WebGL Rendering