- UID
- 319
- 积分
- 3718
- 帖子
- 260
- 主题
- 10
- 论坛币
- 1147
- 威望
- 29
- EP值
- 628
- MP值
- 5
- 阅读权限
- 80
- 注册时间
- 2012-2-26
- 在线时间
- 222 小时
- 最后登录
- 2019-1-1
|
本帖最后由 忘却の小伊 于 2012-4-7 01:39 编辑
嘛···坑拖了两个多星期了···
终于填完这个坑了···
但是无技术含量···
大家看下就好了···- from tcaxPy import *
- def tcaxPy_Init():
- global _Fs
- global Font
- global _Sp
- _Fs = GetVal(val_FontSize)
- _Sp = GetVal(val_Spacing)
- Font = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
- def tcaxPy_Fin():
- FinFont(Font)
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = []
- CL=[ "26B1FD", "CECECE","C8E787","6883FF","FCD8AF","A9E096","AF7BFF","FA6CA7","FC8769","F596EE" ]
- CL1=CL[randint(0,9)]
- image=[ "{\\p1}m 13 25 b 23 19 25 15 25 12 b 26 6 18 -2 13 8 b 8 -2 0 6 2 12 b 2 15 4 19 13 25 " , "{\\p1}m 13 -1 l 17 7 l 25 8 l 19 14 l 20 22 l 13 18 l 6 23 l 7 14 l 1 9 l 8 7 l 13 -1 " ,"{\\p1}m 12 0 b 5 0 1 4 1 11 b 1 17 5 22 12 22 b 19 22 23 17 23 11 b 23 4 19 0 12 0 " , "{\\p1}m 14 12 b 14 12 14 12 14 12 b 8 1 26 1 20 12 b 28 3 34 20 23 17 b 33 22 18 33 17 20 b 16 33 2 24 12 17 b 2 22 5 2 14 12 " ,"{\\p1}m 1 0 m 3 0 l 18 0 b 20 0 21 1 21 2 l 21 17 b 21 18 20 19 18 19 l 3 19 b 2 19 1 18 1 17 l 1 2 b 1 1 2 0 3 0 " , "{\\p1}m 16 0 b 16 8 24 16 31 16 b 24 16 16 23 16 31 b 16 23 9 16 1 16 b 9 16 16 8 16 0 " , "{\\p1}m 11 0 b 18 0 23 5 23 10 b 23 16 18 21 11 21 b 5 21 0 16 0 10 b 8 20 23 9 11 0"]
- dx = _X - int((_A + _Sp)/ 2 +0.5)
- dy = _Y - int(_Fs / 2 + 0.5)
- mask = TextOutlineDraw(Font, _TXT, dx, dy)
- T = 10
- if _i < 56 :
- ###########< k mode = word >
- ass_main(ASS_BUF, SubL(_BT+_SK, _BT+_SK+_KT/2,5),t(fsc(120,120))+pos(_X,_Y)+color3(CL1)+color4(CL1)+blur(2), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT/2, _BT+_SK+_KT,5),fsc(120,120)+t(fsc(100,100))+pos(_X,_Y)+color3(CL1)+color4(CL1)+blur(2), _TXT)
- ###########< k mode = word >
- for i in range(int((_ET-_BT)/T)-1):
- ass_main(ASS_BUF, SubL(_BT+T*i,_BT+T*(i+1)),pos(_X,_Y)+alpha1(255)+color3(CL[(_j-i)%10])+color4(CL[(_j-i)%10])+blur(2), _TXT)
- ass_main(ASS_BUF, SubL(_BT+T*(i+1),_ET),pos(_X,_Y)+alpha1(255)+color3(CL[(_j-i)%10])+color4(CL[(_j-i)%10])+blur(2), _TXT)
- for j in range(int((_ET-_BT)/T)-1):
- ass_main(ASS_BUF, SubL(_BT+T*j,_BT+T*(j+1),2),fsc(220,220)+pos(_X-10,_Y)+color1(CL[(_j-j)%10])+alpha4(255)+bord(0)+blur(3)+iclip(7, mask),image[_j%7])
- ass_main(ASS_BUF, SubL(_BT+T*(j+1),_ET,2),fsc(220,220)+pos(_X-10,_Y)+color1(CL[(_j-j)%10])+alpha4(255)+bord(0)+blur(3)+iclip(7, mask),image[_j%7])
- else:
- ass_main(ASS_BUF, SubL(_BT-20, _BT+(_ET-_BT)*0.5),fn('DFPPOP1-W3')+fad(200,0)+color1(CL1)+color3(CL1)+color4(CL1)+blur(2)+move(_X, _Y+_Fs*1.5,_X+(_A*0.5+_Sp)*(_n*0.5-_j),_Y+_Fs*1.5)+t(fscx(50)),_TXT)
- ass_main(ASS_BUF, SubL(_BT+(_ET-_BT)*0.5, _ET+20),fn('DFPPOP1-W3')+fad(0,200)+color1(CL1)+color3(CL1)+color4(CL1)+blur(2)+move(_X+(_A*0.5+_Sp)*(_n*0.5-_j), _Y+_Fs*1.5,_X,_Y+_Fs*1.5)+fscx(50)+t(fscx(100)),_TXT)
- return (ASS_BUF,None)
复制代码 |
-
1
查看全部评分
-
|