test01.c
来自「Ming is a library for generating Macrome」· C语言 代码 · 共 33 行
C
33 行
#include <libming.h>int main(){ int i; SWFMovie m = newSWFMovieWithVersion(8); SWFMorph morph = newSWFMorphShape(); SWFShape shape1 = SWFMorph_getShape1(morph); SWFShape shape2 = SWFMorph_getShape2(morph); SWFShape_setLine(shape1, 4, 25, 0, 0, 128); SWFShape_movePenTo(shape1, 5, 5); SWFShape_drawLineTo(shape1, 50, 30); SWFShape_setLine(shape2, 4, 25, 0, 0, 128); SWFShape_movePenTo(shape2, 5, 5); SWFShape_drawLineTo(shape2, 50, 130); SWFDisplayItem item = SWFMovie_add(m, (SWFBlock)morph); for(i = 0; i < 10; i++) { SWFDisplayItem_setRatio(item, 0.1 * i); SWFMovie_nextFrame(m); } SWFMovie_save(m,"test01.swf"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?