SWF ãã¤ããªå å·¥ python ã©ã¤ãã©ãªãå ¬éãã¾ãã
ããã«ã¡ã¯ãgumi å
ã¨ã³ã¸ãã¢ã®éè°·ã§ãã
gumi ã§ã¯è§£æã·ã¹ãã ã®éçºããä»åç´¹ä»ãã SWF ãã¤ããªå å·¥ã©ã¤ãã©ãªã®éçºãè¡ã£ã¦ãã¾ããã
SWF ãã¤ããªå å·¥ã«ã¤ãã¦
ã¬ã©ã±ã¼åãã«ã¤ã³ã¿ã©ã¯ãã£ããªã³ã³ãã³ããé
ä¿¡ãããå ´åã¯ãã»ã¼å
¨ã¦ã®æºå¸¯æ©ç¨®ã«å¯¾å¿ãã Flash Lite 1.1 ãç¨ãããã¾ãã
ãã ãããã® Flash Lite 1.1 ã¯é常ã«å¤ãã®å¶ç´ãããã¾ãã
ä¸åº¦ãããªãã·ã¥ãã SWF ãåçã«å å·¥ãããå ´åããã¤ããªããµã¼ãã¼ãµã¤ãã§ç´æ¥ãããã¨ããèæãç¨ãããã¦ããããã§ãã
gumi ã§ã SWF ãã¤ããªãåçã«å å·¥ããå¿ è¦ããããpython ã©ã¤ãã©ãª Tomato ãéçºããã¾ããã
Tomato ã«ãã£ã¦ã
- ãã©ã¡ã¼ã¿ã®æ³¨å ¥
- ç»åã®ç½®ãæã
- MovieClip ã®ç½®ãæã
ã python ã§è¡ããããã«ãªãã¾ãï¼
Tomato
http://github.com/buhii/tomato/
- Tomato ããã¥ã¡ã³ã
http://buhii.github.com/tomato/
Tomato 㯠python 2.5 以ä¸ã§åä½ãã¾ãï¼python 3 ã«ã¯å¯¾å¿ãã¦ãã¾ããï¼ã
Tomato ã®ç»åç½®ãæãæ©è½ãç¨ããããã«ã¯ãPILï¼1.1.7 以ä¸ï¼ãå¿
è¦ã«ãªãã¾ãã
MovieClip ç½®ãæãæ©è½ã«ã¯ãbitarrayï¼0.3.5 以ä¸ï¼ã¨ãmsgpack-pythonï¼0.1.8 以ä¸ï¼ãå¿
è¦ã«ãªãã¾ãã
ã¾ããWindows ã§ã¯æ£å¸¸ã«åä½ãã¦ããããããã¯æ¬¡æãªãªã¼ã¹ã§è§£æ±ºãããã¨èãã¦ãã¾ãã
Tomato éçºã§è¦å´ããæ
ç¾å¨ãSWF ã®ä»æ§æ¸ã¯å
¬éããã¦ããã誰ã§ãèªç±ã«é²è¦§ããSWF ãèªã¿æ¸ãããããã°ã©ã ãéçºãããã¨ãã§ãã¾ãã
ã¾ããç»åç½®ãæãã«ã¤ãã¦ã¯ãã¨ã³ã¸ãã¢ã®ç ããããç´¹ä»ãã¦é ãããããããã® SWF 解æè¨äºãåèã«ãã¾ããã
http://pwiki.awm.jp/~yoya/?Flash/SWF
ããããã®è¨äºã®ãããã§ãSWF ã®æ§é ãææ¡ãããã¨ãã§ããã¾ãã¨ã³ã¸ãã¢ã®ä¸ç¥ããã®ãååã®å
ãç»åç½®ãæãããã°ã©ã ãéçºãããã¨ãã§ãã¾ããã
ããããMovieClip ã®ç½®ãæãã¯è¦å´ãã¾ããã
é£ããç®æã¯ãpython ã«ããããããã£ã¼ã«ãã®æä½ã§ããã
SWF ãã¤ããªã¯ã§ããéããã¡ã¤ã«ãµã¤ãºãå°ããããããã«ãããããã£ã¼ã«ããç¨ãã¦åº§æ¨ãã¼ã¿çãæ ¼ç´ãã¦ãã¾ããæåã«èªåã§ãããã¹ããªã¼ã ãå¦çããã¯ã©ã¹ãä½æãã¦å¦çãè¡ã£ã¦ããã®ã§ãããã¨ã¦ãé
ãã¦ä½¿ãç©ã«ãªãã¾ããã§ããã
ã¨ã³ã¸ãã¢ã®ç°æããã¨ä¸ç·ã« python ã§å¹ççã«ãããã¹ããªã¼ã ãæ±ããã©ã¤ãã©ãªãæ¢ããã¨ãããbitarray ã¨ãã C-extension ãé«éã§è¯ãããã§ããã®ã§ç¨ãããã¨ã«ãã¾ããã
ãããã¹ããªã¼ã å¦çã« bitarray ãç¨ãããã¨ã§ python ã«ããèªåã¯ã©ã¹ããã3åç¨é«éã«ãªãã¾ããããä¾ç¶ã¨ã㦠SWF ã®ãã¼ã¹å¦çã¯é
ãã¾ã¾ã§ããã
ããã§ãä»åº¦ã¯ SWF ãã¡ã¤ã«ããã¼ã¹ãããã®ããããããã·ãªã¢ã©ã¤ãºãã¦ãã¾ãããããåçåæã®éã«ç¨ããæ¹æ³ãèãã¾ãããããããã°ãSWF ãã¡ã¤ã«ãæåãããã¼ã¹ãããã¨ãªããããããã Python ãªãã¸ã§ã¯ãã®å½¢å¼ã§æä½ã§ããããã«ãªãã®ã§ããã¼ã¹ããã³ã¹ããåæ¸ããã¾ãã
ããã§ã¯ãgumiStudy#7 ã§çºè¡¨ãããå¤æ©è²ä¹ããã®éçºããã msgpack ãæ¡ç¨ãããã¨ã«ãã¾ããã
å®éã«ã¯ãgumi ã®ã¨ã³ã¸ãã¢ããä¸è©±ã«ãªã£ã¦ãããã¨ãã¹ãã¼ã Python ããã°ã©ãã³ã°ãã®ç¿»è¨³è
ã®ä¸äººã§ãã稲ç°ç´åããã python åãã«ãã¼ãã£ã³ã°ãã msgpack-python ãæ¡ç¨ãã¾ããã
ãã®ãããªé«éåãè¡ã£ãçµæãTomato ã¯ã»ã¼åé¡ãªã使ç¨ã§ããããã«ãªãã¾ããã
ç¾å¨ Tomato 㯠gumi ã®ãã¡ã¤ãÃã¡ã¤ããã1æ27æ¥ã«çºè¡¨ãããã°ããã®ãZoo ãã©ãã«ã¦ä½¿ç¨ããã¦ãããåé¡ãªãåä½ãã¦ãã¾ãã
Tomato ã®ä»å¾
Tomato 㯠MIT License ã§å
¬éããããã¨ã«ãªãã¾ããã
ãªã¼ãã³ã½ã¼ã¹åãã快諾é ãã gumi å½å
社é·ãããã¦å å
CTO ã«æ·±ãæè¬ãããã¾ãã
ç¾å¨ãTomato ã¯éè°·ãã¡ã³ããã³ã¹ãè¡ã£ã¦ããã¾ããåé¡ãè¦æçãããã¾ããããgumi å®ã§ã¯ãªãéè°·å®ããããã㯠tomato-python Google Groupsã«éã£ã¦é ããã°ã¨æãã¾ãã
æå¾ã«ãTomato ã®éçºã«ãååé ãã gumi ã¨ã³ã¸ãã¢ã®çæ§ã«æ·±ãæè¬ãããã¾ãã
ãããã¨ããããã¾ããï¼