- UID
- 215
- 积分
- 15394
- 帖子
- 1163
- 主题
- 27
- 论坛币
- 428
- 威望
- 125
- EP值
- 1992
- MP值
- 26
- 阅读权限
- 100
- 注册时间
- 2011-10-13
- 在线时间
- 668 小时
- 最后登录
- 2018-6-25
![Rank: 5](static/image/common/star_level3.gif) ![Rank: 5](static/image/common/star_level1.gif)
|
- from tcaxPy import *
- def tcaxPy_Init():
- global _FD # frame duration, in millisecond
- global _Fs
- global pyFont
- global _Length
- _FD = 1000 / GetVal(val_FXFPS)
- _Fs = GetVal(val_FontSize)
- pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
- _Length = GetVal(val_TextLength)
- def fr(x):
- X = randint(0,x)
- return frz(X)+frx(X)+fry(X)
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- global POS1
- global POS2
- ASS_BUF = [] # used for saving ASS FX lines
- if _i < 29 and _j == 0:
- POS1 = [_X-_A/2,_Y]
- if _i < 29 and _j == _n-1:
- POS2 = [_X+_A/2,_Y]
-
-
- for k in range(_n*5):
- ass_main(ASS_BUF,SubL(_BT-60+_j*5+k,_BT+20+_j*5+k,_n*5-k), an(5)+mov(POS1[0],POS1[1],POS2[0],POS2[1])+color3("FFFFFF")+color1("FFFFFF")+fsc(10,10)+blur(3)+be(2)+alpha1(k*5), "●")
- if _i < 29:
- ass_main(ASS_BUF,SubL(_BT-20+_j*5,_BT+_j*5), pos(_X,_Y)+an(5)+fscy(0)+animation(fscy(100)+blur(4))+alpha3(100)+alpha1(155)+color1("000000")+color3("FFFFFF"), _TXT)
- ass_main(ASS_BUF,SubL(_BT+_j*5,_BT+_SK), pos(_X,_Y)+an(5)+blur(4)+alpha3(100)+alpha1(155)+color1("000000")+color3("FFFFFF"),_TXT)
- sb1=""
- for i in range (0,30):
- a = -0.15+0.01*i
- l = (pow((abs(a)/0.15),0.3)+0.5)*120*8
- sb1= sb1 + "m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
- sb2 = ""
- for j in range (0,30):
- a = -0.15+0.01*j
- l = (pow((abs(a)/0.15),0.3)+0.5)*60*8
- sb2 = sb2 +"m 0 0 l"+" "+str(int(l*cos(a)))+" "+str(int(l*sin(a)))+" 0 1 c "
-
- tStep = 2
- for e in range(_BT+_SK,_BT+_SK+_KT,tStep):
- startag = randint(0, 359)
- endag = startag + randint(0,9)/10 * randint(50, 100)
- ass_main(ASS_BUF, SubL(e,e+ 100,19), pos(_X, _Y)+ an(7)+fad(300, 300)+fsc(50,50)+alpha1(0)+be(1)+shad(0)+bord(0)+color1("FF7C00")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb1)
- ass_main(ASS_BUF, SubL(e,e + 100,20), pos(_X, _Y)+ an(7)+fad(300, 300)+fsc(50,50)+alpha1(17)+be(1)+shad(0)+bord(0)+color1("FFFFFF")+ frz(startag) + t1(0,1000,frz(endag)),"{\p4}"+sb2)
- ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,21), pos(_X,_Y)+an(5)+blur(4)+alpha3(100)+color1("000000")+color3("FFFFFF"),_TXT)
- ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_ET-(_n-_j)*5,21), pos(_X,_Y)+an(5)+blur(4)+alpha3(100)+alpha1(155)+color1("000000")+color3("FFFFFF"),_TXT)
- ass_main(ASS_BUF,SubL(_ET-(_n-_j)*5,_ET-(_n-_j)*5+20,21), pos(_X,_Y)+an(5)+blur(4)+fscy(100)+animation(fscy(0)+blur(0))+alpha3(100)+alpha1(155)+color1("000000")+color3("FFFFFF"),_TXT)
- if _i > 28:
- ass_main(ASS_BUF, SubL(_BT-20,_BT+_SK), an(5)+pos(_X,_Y)+blur(4)+alpha3(100)+alpha1(155)+color1("000000")+color3("FFFFFF")+fry(90)+animation(fry(0)),_TXT)
- for j in range(_BT+_SK,_ET,8):
- ass_main(ASS_BUF, SubL(j,j+4,30),pos(_X,_Y)+bord(3)+blur(6)+color3("CCCCCC")+alpha1(255)+shad(0), _TXT)
- ass_main(ASS_BUF, SubL(j,j+4,30),pos(_X,_Y)+bord(3)+blur(3)+color3("CCCCCC")+alpha1(255)+shad(0), _TXT)
- ass_main(ASS_BUF, SubL(j,j+4,30),pos(_X,_Y)+bord(3)+blur(3)+color3("CCCCCC")+alpha1(255)+shad(0), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK,_ET,31), an(5)+pos(_X,_Y)+blur(4)+alpha3(255)+alpha1(100)+color1("000000")+color3("FFFFFF"),_TXT)
- return (ASS_BUF,None)
复制代码 这个没做中文部分,所以夭折了,没压制。。。我自己也只是看过外挂字幕的效果 |
-
2
查看全部评分
-
|