- UID
- 3
- 积分
- 8169
- 帖子
- 259
- 主题
- 68
- 论坛币
- 5016
- 威望
- 54
- EP值
- 2533
- MP值
- 20
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 1097 小时
- 最后登录
- 2022-10-8
|
預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview- from tcaxPy import *
- def tcaxPy_Init():
- # Tips: initialize your global variables here
- global _FontSize
- global pyFont
- _FontSize = GetVal(val_FontSize)
- pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
- def tcaxPy_Main(_I, _J, _N, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = [] # used for saving raw TCS FX data
- C = ["FFB9E5","B9FFFF","DBC7FF","01FFFF","FFFFC4","FFCEFF","ABFFD4"]
- COLOR=[ "0000FF", "0080FF","00FFFF","00FF00","FF0000","FFFF00","800080" ]
- fc = COLOR[randint(0,6)]
- mc = C[randint(0,6)]
- A = randint(-180,180)
- """
- if _I == 8:
- PIX = TextPix(pyFont, _TXT)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # left most position of the pixels in PIX
- InitPosY = _Y - int(_FontSize / 2 + 0.5) + PIX[0][1] # upper most position of the pixels in PIX
- X_list = []
- Y_list = []
- for h in range(PIX[1][1]):
- PosY = InitPosY + h # y-position of the current pixel
- for w in range(PIX[1][0]):
- PosX = InitPosX + w # x-position of the current pixel
- X = PosX
- Y = PosY
-
- idx = 4 * (h * PIX[1][0] + w)
- PixR = PIX[2][idx + 0]
- PixG = PIX[2][idx + 1]
- PixB = PIX[2][idx + 2]
- PixA = PIX[2][idx + 3]
- if PixA == 255:
- if randint(0,20) == 1:
- ass_main(ASS_BUF, SubL(_BT+_SK-5+randint(-2,5),_BT+_SK+120+randint(-10,10),15),mov(X,Y+40,X-100+randint(-30,30),Y+120+randint(-30,30))+fad(20,300)+fs(10)+bord(2)+blur(3)+color3("FCFF9E")+color1("FCFF9E")+alpha1(20)+alpha3(100)+t(frz(360)+fs(25)), "★")
- ass_main(ASS_BUF, SubL(_BT,_BT+_SK,10),fad(200,100)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y+40), _TXT)
- """
- if _I == 6 :
- ass_main(ASS_BUF, SubL(_BT-5,_BT+_SK+_KT,10),fad(200,0)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,10),fad(0,200)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- if _KT <= 40 :
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+68,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- else:
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT+30,1),color1(mc)+fad(50,250)+fs(70)+color3(mc)+blur(8)+alpha3(50)+bord(3)+shad(0)+pos(_X,_Y)+frz(A)+t(frz(A-3*_KT)), "★")
- elif _I == 7:
- ass_main(ASS_BUF, SubL(_BT-5,_BT+_SK+_KT,10),fad(200,0)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,10),fad(0,200)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- if _KT <= 40 :
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+68,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- else:
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT+30,1),color1(mc)+fad(50,250)+fs(70)+color3(mc)+blur(8)+alpha3(50)+bord(3)+shad(0)+pos(_X,_Y)+frz(A)+t(frz(A+3*_KT)), "★")
- else:
- ass_main(ASS_BUF, SubL(_BT-5,_BT+_SK+_KT,10),fad(200,0)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,_ET,10),fad(0,200)+color1("FFFFFF")+color3("000000")+blur(3)+alpha3(50)+bord(1)+shad(1)+pos(_X,_Y), _TXT)
- if _KT <= 40 :
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+68,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- else:
- ass_main(ASS_BUF, SubL(_BT+_SK-5,_BT+_SK+_KT,30),pos(_X,_Y)+fad(50,50)+color1(fc)+color3("FFFFFF")+blur(3)+alpha3(50)+alpha4(255)+bord(0)+shad(1), _TXT)
- for i in range(_BT+_SK-5,_BT+_SK-5+_KT,68):
- Y = (i - _BT-_SK+5)%272
- if Y == 0:
- x = 1
- y = -1
- elif Y == 136:
- x = 1
- y = 1
- else:
- x = 0
- y = 0
- ass_main(ASS_BUF, SubL(i,i+68,1),color1(mc)+fad(50,100)+fs(60)+color3(mc)+blur(3)+alpha3(50)+bord(1)+shad(0)+pos(_X,_Y)+fscx(130-30*x+randint(-5,5))+fscy(130-30*x+randint(-5,5))+frz(A+120*y), "★")
- return (ASS_BUF,None)
- def tcaxPy_Fin():
- # Tips: finalize your global variables here
- FinFont(pyFont)
复制代码 |
-
2
查看全部评分
-
|