ãã©ã¦ã¶ã ãã§ã¢ãGIFã®ã¨ã³ã³ã¼ããã§ããJSã©ã¤ãã©ãªã¯as3gifã®JSãã¼ãã ã£ã
ç»åã®ä¸é¨ã«ã¢ã¶ã¤ã¯ãããã¦GIFã¢ãã¡ã«ãã - é³ã®é³´ãããã° … å
¨é¨ãã©ã¦ã¶ã§ãã£ã¦ãã。 CanvasããGIFã¢ãã¡ãä½ãã©ã¤ãã©ãª ããã£ã¦、試ãã¦ã¿ããçµæ§éãã£ãã®ã§、ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ãã®ã¾ã¾ã§WebWorkerã§å¦çããããã«æ¹é ããã㤠ã使ã£ã¦ãã。 ãã©ã¦ã¶ã ãã§ã¢ãGIFãä½ããããã«ãªã£ããã ãªã¼、ç´ æ´ããããªã¼ã¨æã£ã¦、ãããå®ç¾ããã©ã¤ãã©ãªãã©ããªãã®ãªã®ãããã§ãã¯ãããas3gif(GIFPlayer)ã®JSãã¼ãã ã£ã。 antimatter15/jsgif · GitHub çè
ã®æ¹ã¯「å¦çãéã」ã¨ãã£ããã£ã¦ãã。å®éã«è©¦ãã¦ã¿ãã¨ãã、確ãã«éã(^^); as3gifã¯åã«AS3ã§ä½¿ã£ããã¨ãããã©ã¤ãã©ãªãªã®ã ãã©、ãã®å¦çã®éãã¯AS3ã§ãåãã ã£ã。 æ¤è¨¼ã®çµæ、ãã®å¦çã®é
ãã®å¤§ããªåå ã¯、æ¸è²ã¢ã«ã´ãªãºã ã® org.bytearray.gif.encoder.NeuQuant.as ã«ããã¨åãã£ã。ã©ããNeuQuantã¯è²ã®åç¾æ§ã¯é«ãã®ã ãã©å¦çãéãããã ã£ã。 ããã§、è²ã®åç¾æ§ã¯å¤å°ç ç²ã«ãã¦é度åªå
ã§・・・ã¨mediancutãoctreeã®ã¢ã«ã´ãªãºã ã試ãããããªãéããªã£ããã¨ãè¦ãã¦ãã。ç¹ã«mediancutã¯åç´ãªã ãã«é«éã§、è²ã®åç¾æ§ãããã»ã©æªãã¯ãªãã£ã。 ãã©ã¦ã¶ã ãã§ã¢ãGIFã®ã¨ã³ã³ã¼ããã§ããã®ã¯ç»æçã ã¨æãã®ã§、ãã®ãã¡mediancutãJSã«ç§»æ¤ãã¦ã¿ãã。 ããæ°ãåºãã(^^); æ°å¤è¨ç®é¨åã«æè¿è©±é¡ã®asm.jsã使ã£ããããã«éããªããã? Firefox22ã「asm.js」æ¡ç¨ã¸、JavaScriptããã¤ãã£ãã¢ããªã«è¿ãå®è¡é度ã¾ã§é«éå - GIGAZINE