- UID
- 330
- 积分
- 674
- 帖子
- 32
- 主题
- 2
- 论坛币
- 2763
- 威望
- 0
- EP值
- 510
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2012-3-4
- 在线时间
- 383 小时
- 最后登录
- 2016-4-8
|
A few bugs are fixed. ^_^'
On it sat a little, but still something is not right.
I can not say I was quite enlightened by the Buddha, but little understood.
And now, Milky-san please help. - from tcaxPy import *
- def tcaxPy_Init():
- global _FontFileName
- global _FaceID
- global _Fs
- global _FD
- global _Height
- global _Font
- global _FontSize
- global pyFont
- pyFont = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), GetVal(val_FontSize), GetVal(val_Spacing), GetVal(val_SpaceScale), 0x0000FF, 0, 0)
- _FontSize = GetVal(val_FontSize)
- _FontFileName = GetVal(val_FontFileName)
- _FaceID = GetVal(val_FaceID)
- _Fs = GetVal(val_FontSize)
- _FD = 1000 / GetVal(val_FXFPS)
- _Height = GetVal(val_TextHeight)
- _Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
- def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
- ASS_BUF = [] # 用于保存ASS特效
- TCAS_BUF = [] # 用于保存TCAS特效
- if _i == 0:
- Blur = blur(2)
- Be = be(1)
- Bord =bord(2)
- for i in range(_H + 2):
- CLIP = clip(_X - 1-5, _Y + i - 1, _X + 1 + _H+5, _Y + i)
- M = t1(0,50,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-2,2),_Y))
- for k in range(AdvInt(_KT/10)):
- ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10),Be +Blur+ Bord + M +CLIP, _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+(k+1)*10,_ET),pos(_X,_Y)+Be +Blur+Bord, _TXT)
- elif _i == 1:
- for k in range(12):
- BEAT = t1(0,10,mov(_X,_Y,_X+randint(-5,5),_Y+randint(-5,5)))+t1(10,20,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(20,30,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(30,40,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(40,50,mov(_X+randint(-5,5),_Y+randint(-5,5),_X,_Y))
- BegTime = _BT + k * 5
- EndTime = _BT + (k+1) * 5
- ass_main(ASS_BUF, SubL(BegTime, EndTime),BEAT+blur(2)+bord(2)+be(1),"Do Live Again")
- ass_main(ASS_BUF, SubL(EndTime, _ET),pos(_X,_Y)+blur(2)+bord(2)+be(1),"Do Live Again")
- elif _i == 2:
- EFT1 = mov(_X-300,0,_X-300,_Y)+ org(_X-300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X-300,_Y)+ org(_X-300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT-10,_BT + 20),fad(100,0)+ EFT1 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40), fad(100,0)+EFT2 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+40,_ET+105),fad(100,0)+ pos(_X-300,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 3:
- EFT = an(5)+fscx(100)+fscy(100)+t1(0,100,fscx(200)+fscy(150))+t1(100,200,fscx(100)+fscy(100))
- ass_main(ASS_BUF, SubL(_BT,_BT+20), fad(100,0)+pos(_X,_Y)+EFT + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+20,_ET+41),fad(100,0)+ pos(_X,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 4:
- EFT1 = mov(_X+300,0,_X+300,_Y)+ org(_X+300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X+300,_Y)+ org(_X+300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT,_BT + 20),fad(100,0)+ EFT1 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40), fad(100,0)+EFT2 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+40,_ET), fad(100,0)+pos(_X+300,_Y) + blur(2)+bord(2)+be(1), _TXT)
-
- elif _i == 5:
- _Bd = GetVal(val_Bord)
- _Br = GetVal(val_Blur)
- PIX = TextPix(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), DecRGB('0000FF'), _Bd, True, _TXT)
- PIX = PixBlur(PIX, _Br)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # 第一个像素的X轴坐标
- InitPosY = _Y - int(_Fs / 2 + 0.5) + PIX[0][1] # 第一个像素的Y轴坐标
- for h in range(PIX[1][1]): # 开始纵向扫描
- PosY = InitPosY + h
- # 当前像素Y轴坐标
- for w in range(PIX[1][0]): # 开始横向扫描
- PosX = InitPosX + w
- X = PosX-randint(-15,15)
- Y = PosY-randint(-15,15) # 当前像素X轴坐标
- 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 != 0: # 如果当前像素不为透明则进行如下操作
- M = mov(PosX,PosY,X,Y)
- ass_main(ASS_BUF, SubL(_BT+15,_ET+randint(-10,10)),M+bord(0), PixPt())
- ass_main(ASS_BUF, SubL(_BT,_BT+15),fad(150,0)+pos(_X,_Y)+be(1) +blur(2)+bord(2), "I'm All")
- elif _i == 6:
- Blur = blur(2)
- Be = be(1)
- Bord =bord(2)
- for i in range(_H + 2):
- CLIP = clip(_X - 1-5, _Y + i - 1, _X + 1 + _H+5, _Y + i)
- M = t1(0,50,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-2,2),_Y))
- for k in range(AdvInt(_KT/10)):
- ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10),Be +Blur+ Bord + M +CLIP, _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+(k+1)*10,_ET),pos(_X,_Y)+Be +Blur+Bord, _TXT)
- elif _i == 7:
- for k in range(12):
- BEAT = t1(0,10,mov(_X,_Y,_X+randint(-5,5),_Y+randint(-5,5)))+t1(10,20,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(20,30,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(30,40,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(40,50,mov(_X+randint(-5,5),_Y+randint(-5,5),_X,_Y))
- BegTime = _BT + k * 5
- EndTime = _BT + (k+1) * 5
- ass_main(ASS_BUF, SubL(BegTime, EndTime),BEAT+blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(EndTime, _ET),pos(_X,_Y)+blur(2)+bord(2)+be(1), _TXT)
- elif _i == 8:
- EFT1 = mov(_X-300,0,_X-300,_Y)+ org(_X-300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X-300,_Y)+ org(_X-300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT-10,_BT + 20),fad(100,0)+ EFT1 + blur(2)+bord(2)+be(1), "The Sun")
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), "The Sun")
- ass_main(ASS_BUF, SubL(_BT+40,_ET+98),fad(100,0)+ pos(_X-300,_Y) + blur(2)+bord(2)+be(1), "The Sun")
- elif _i == 9:
- EFT = an(5)+fscx(100)+fscy(100)+t1(0,100,fscx(200)+fscy(150))+t1(100,200,fscx(100)+fscy(100))
- ass_main(ASS_BUF, SubL(_BT,_BT+20), fad(100,0)+pos(_X,_Y)+EFT + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+20,_ET+41),fad(100,0)+ pos(_X,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 10:
- EFT1 = mov(_X+300,0,_X+300,_Y)+ org(_X+300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X+300,_Y)+ org(_X+300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT,_BT + 20), fad(100,0)+EFT1 + blur(2)+bord(2)+be(1), "The Earth")
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), "The Earth")
- ass_main(ASS_BUF, SubL(_BT+40,_ET),fad(100,0)+ pos(_X+300,_Y) + blur(2)+bord(2)+be(1), "The Earth")
- elif _i == 11:
- _Bd = GetVal(val_Bord)
- _Br = GetVal(val_Blur)
- PIX = TextPix(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), DecRGB('0000FF'), _Bd, True, _TXT)
- PIX = PixBlur(PIX, _Br)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # 第一个像素的X轴坐标
- InitPosY = _Y - int(_Fs / 2 + 0.5) + PIX[0][1] # 第一个像素的Y轴坐标
- for h in range(PIX[1][1]): # 开始纵向扫描
- PosY = InitPosY + h
- # 当前像素Y轴坐标
- for w in range(PIX[1][0]): # 开始横向扫描
- PosX = InitPosX + w
- X = PosX-randint(-15,15)
- Y = PosY-randint(-15,15) # 当前像素X轴坐标
- 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 != 0: # 如果当前像素不为透明则进行如下操作
- M = mov(PosX,PosY,X,Y)
- ass_main(ASS_BUF, SubL(_BT,_BT+15),fad(150,0)+pos(_X,_Y)+be(1) +blur(2)+bord(2), "On Squall")
- elif _i<16:
- for s in range(AdvInt(((_ET-_BT-_SK)/20))):
- BT = _BT+_SK+ s*20
- ET = _BT+_SK+ (s+1)*20
- EFT1 = t1(0, 100,bord(4)) + t1(100, 200, bord(0))
- ass_main(ASS_BUF, SubL(BT,ET,1), pos(_X,_Y)+ alpha3(50) + EFT1 + blur(6) + be(1), _TXT)
- ass_main(ASS_BUF, SubL(ET,_ET,2), pos(_X,_Y)+bord(4) + blur(6) + be(1), _TXT)
-
- elif _i<18:
- ass_main(ASS_BUF, SubL(_BT+_SK,_ET), fad(200,0)+pos(_X,_Y) + blur(2)+bord(2)+be(1), _TXT)
- for i in range(37):
- img_path = MakePath(5, i + 1, 'images', 'list', 'img', '.png', 'sys')
- img_size = 4 * _Fs
- PIX = ImagePix(img_path, img_size)
- PIX = PixMultiRGBA(PIX, 1, 1, 1, (37 - i) / 37)
- tcs_main(TCS_BUF, PIX, 10 * (_BT + _SK) - 500 + i * _TimePF, 10 * (_BT + _SK) - 500 + (i + 1) * _TimePF, _X - PIX[1][0] / 2, _Y - PIX[1][1] / 2, 0)
- elif _i == 18:
- Blur = blur(2)
- Be = be(1)
- Bord =bord(2)
- for i in range(_H + 2):
- CLIP = clip(_X - 1-5, _Y + i - 1, _X + 1 + _H+5, _Y + i)
- M = t1(0,50,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-2,2),_Y))
- for k in range(AdvInt(_KT/10)):
- ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10),Be +Blur+ Bord + M +CLIP, _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+(k+1)*10,_ET),pos(_X,_Y)+Be +Blur+Bord, _TXT)
- elif _i == 19:
- for k in range(12):
- BEAT = t1(0,10,mov(_X,_Y,_X+randint(-5,5),_Y+randint(-5,5)))+t1(10,20,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(20,30,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(30,40,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(40,50,mov(_X+randint(-5,5),_Y+randint(-5,5),_X,_Y))
- BegTime = _BT + k * 5
- EndTime = _BT + (k+1) * 5
- ass_main(ASS_BUF, SubL(BegTime, EndTime),BEAT+blur(2)+bord(2)+be(1), "Get Back My Love")
- ass_main(ASS_BUF, SubL(EndTime, _ET),pos(_X,_Y)+blur(2)+bord(2)+be(1), "Get Back My Love")
- elif _i == 20:
- EFT1 = mov(_X-300,0,_X-300,_Y)+ org(_X-300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X-300,_Y)+ org(_X-300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT-10,_BT + 20), fad(100,0)+EFT1 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+40,_ET+99),fad(100,0)+ pos(_X-300,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 21:
- EFT = an(5)+fscx(100)+fscy(100)+t1(0,100,fscx(200)+fscy(150))+t1(100,200,fscx(100)+fscy(100))
- ass_main(ASS_BUF, SubL(_BT,_BT+20), fad(100,0)+pos(_X,_Y)+EFT + blur(2)+bord(2)+be(1), "My Lost")
- ass_main(ASS_BUF, SubL(_BT+20,_ET+41),fad(100,0)+ pos(_X,_Y) + blur(2)+bord(2)+be(1), "My Lost")
- elif _i == 22:
- EFT1 = mov(_X+300,0,_X+300,_Y)+ org(_X+300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X+300,_Y)+ org(_X+300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT,_BT + 20), fad(100,0)+EFT1 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+40,_ET),fad(100,0)+ pos(_X+300,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 23:
- _Bd = GetVal(val_Bord)
- _Br = GetVal(val_Blur)
- PIX = TextPix(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), DecRGB('0000FF'), _Bd, True, _TXT)
- PIX = PixBlur(PIX, _Br)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # 第一个像素的X轴坐标
- InitPosY = _Y - int(_Fs / 2 + 0.5) + PIX[0][1] # 第一个像素的Y轴坐标
- for h in range(PIX[1][1]): # 开始纵向扫描
- PosY = InitPosY + h
- # 当前像素Y轴坐标
- for w in range(PIX[1][0]): # 开始横向扫描
- PosX = InitPosX + w
- X = PosX-randint(-15,15)
- Y = PosY-randint(-15,15) # 当前像素X轴坐标
- 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 != 0: # 如果当前像素不为透明则进行如下操作
- M = mov(PosX,PosY,X,Y)
- ass_main(ASS_BUF, SubL(_BT+15,_ET+randint(-10,10)),M+bord(0), PixPt())
- ass_main(ASS_BUF, SubL(_BT,_BT+15),fad(150,0)+pos(_X,_Y)+be(1) +blur(2)+bord(2), "So Fool")
-
- elif _i == 24:
- Blur = blur(2)
- Be = be(1)
- Bord =bord(2)
- for i in range(_H + 2):
- CLIP = clip(_X - 1-5, _Y + i - 1, _X + 1 + _H+5, _Y + i)
- M = t1(0,50,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(50,100,mov(_X,_Y,_X+randint(-2,2),_Y))+t1(100,150,mov(_X,_Y,_X+randint(-2,2),_Y))
- for k in range(AdvInt(_KT/10)):
- ass_main(ASS_BUF, SubL(_BT+_SK+k*10,_BT+_SK+(k+1)*10),Be +Blur+ Bord + M +CLIP, _TXT)
- ass_main(ASS_BUF, SubL(_BT+_SK+(k+1)*10,_ET),pos(_X,_Y)+Be +Blur+Bord, _TXT)
- elif _i == 25:
- for k in range(12):
- BEAT = t1(0,10,mov(_X,_Y,_X+randint(-5,5),_Y+randint(-5,5)))+t1(10,20,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(20,30,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(30,40,mov(_X+randint(-5,5),_Y+randint(-5,5),_X+randint(-5,5),_Y+randint(-5,5)))+t1(40,50,mov(_X+randint(-5,5),_Y+randint(-5,5),_X,_Y))
- BegTime = _BT + k * 5
- EndTime = _BT + (k+1) * 5
- ass_main(ASS_BUF, SubL(BegTime, EndTime),BEAT+blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(EndTime, _ET),pos(_X,_Y)+blur(2)+bord(2)+be(1), _TXT)
- elif _i == 26:
- EFT1 = mov(_X-300,0,_X-300,_Y)+ org(_X-300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X-300,_Y)+ org(_X-300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT-10,_BT + 20), fad(100,0)+EFT1 + blur(2)+bord(2)+be(1), "The Sun")
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), "The Sun")
- ass_main(ASS_BUF, SubL(_BT+40,_ET+99),fad(100,0)+ pos(_X-300,_Y) + blur(2)+bord(2)+be(1), "The Sun")
- elif _i == 27:
- EFT = an(5)+fscx(100)+fscy(100)+t1(0,100,fscx(200)+fscy(150))+t1(100,200,fscx(100)+fscy(100))
- ass_main(ASS_BUF, SubL(_BT,_BT+20), fad(100,0)+pos(_X,_Y)+EFT + blur(2)+bord(2)+be(1), _TXT)
- ass_main(ASS_BUF, SubL(_BT+20,_ET+41),fad(100,0)+ pos(_X,_Y) + blur(2)+bord(2)+be(1), _TXT)
- elif _i == 28:
- EFT1 = mov(_X+300,0,_X+300,_Y)+ org(_X+300 +5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(-10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- EFT2 = pos(_X+300,_Y)+ org(_X+300 -5,_Y+5)+an(5)+t1(0,80,fscx(120)+fscy(70))+t1(80,160,fscx(80)+fscy(120)+frz(10))+t1(160,240,fscx(100)+fscy(100)+frz(0))
- ass_main(ASS_BUF, SubL(_BT,_BT + 20), fad(100,0)+EFT1 + blur(2)+bord(2)+be(1), "The Moon")
- ass_main(ASS_BUF, SubL(_BT + 20,_BT + 40),fad(100,0)+ EFT2 + blur(2)+bord(2)+be(1), "The Moon")
- ass_main(ASS_BUF, SubL(_BT+40,_ET),fad(100,0)+ pos(_X+300,_Y) + blur(2)+bord(2)+be(1), "The Moon")
- elif _i == 29:
-
- _Bd = GetVal(val_Bord)
- _Br = GetVal(val_Blur)
- PIX = TextPix(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), DecRGB('0000FF'), _Bd, True, _TXT)
- PIX = PixBlur(PIX, _Br)
- InitPosX = _X - int(_A / 2 + 0.5) + PIX[0][0] # 第一个像素的X轴坐标
- InitPosY = _Y - int(_Fs / 2 + 0.5) + PIX[0][1] # 第一个像素的Y轴坐标
- for h in range(PIX[1][1]): # 开始纵向扫描
- PosY = InitPosY + h
- # 当前像素Y轴坐标
- for w in range(PIX[1][0]): # 开始横向扫描
- PosX = InitPosX + w
- X = PosX-randint(-15,15)
- Y = PosY-randint(-15,15) # 当前像素X轴坐标
- 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 != 0: # 如果当前像素不为透明则进行如下操作
- M = mov(PosX,PosY,X,Y)
- ass_main(ASS_BUF, SubL(_BT+15,_ET+randint(-10,10)),M+bord(0), PixPt())
- ass_main(ASS_BUF, SubL(_BT,_BT+15),fad(150,0)+pos(_X,_Y)+be(1) +blur(2)+bord(2), "On Squall")
- return (ASS_BUF, TCAS_BUF)
复制代码 I have a low level, to understand
|
|