3 ms·
The article[1] linked from the demo mentions an optimization that the image is preprocessed so that the javascript code only updates the pixels that are cycling
by protopete 14y ago
The article[1] linked from the demo mentions an optimization that the image is preprocessed so that the javascript code only updates the pixels that are cycling. I wonder how another method would compare - modify the palette table in the PNG or GIF in Javascript, then redecode the image for each animation frame using the browser's decoder (native code).
1. http://www.effectgames.com/effect/article.psp.html/joe/Old_School_Color_Cycling_with_HTML5 http://www.effectgames.com/effect/article.psp.html/joe/Old_S...