TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

 找回密码
 新人加入
查看: 5276|回复: 11
打印 上一主题 下一主题

[完整特效] [lun]011_anohana_ED [复制链接]

Moderator

疯子

Rank: 5Rank: 5

跳转到指定楼层
楼主
发表于 2012-4-3 21:22:08 |只看该作者 |倒序浏览
  1. from tcaxPy import *


  2. def tcaxPy_Init():
  3.     global _FontFileName          # frame duration, in millisecond
  4.     global _FD                  
  5.     global _Fs
  6.     global _Length
  7.     global _Bd
  8.     global _Br
  9.     global _FaceID
  10.     global _Font
  11.     _FontFileName = GetVal(val_FontFileName)
  12.     _FD = 1000 / GetVal(val_FXFPS)
  13.     _Fs = GetVal(val_FontSize)
  14.     _Length = GetVal(val_TextLength)
  15.     _Bd = GetVal(val_Bord)
  16.     _Br = GetVal(val_Blur)
  17.     _FaceID = GetVal(val_FaceID)
  18.     _Font = InitFont(_FontFileName, _FaceID, _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), DecRGB('CBDCFE'), 2, False)

  19. def fr(x):

  20.     X = randint(-x,x)

  21.     return frx(X)+fry(X)+frz(X)


  22. def PixPoints2(PIX):
  23.     width = PIX[1][0]
  24.     height = PIX[1][1]
  25.     points = []
  26.     for w in range(width):
  27.         for h in range(height):
  28.             idx = 4 * (h * width + w)
  29.             pixA = PIX[2][idx + 3]
  30.             if pixA != 0:
  31.                 points.append((w, h))
  32.     return points

  33. def tcaxPy_Main(_i, _j, _n, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
  34.     global POS1

  35.     ASS_BUF  = []        # used for saving ASS FX line

  36.     if _j == 0:
  37.         POS1 = [_X , _Y]

  38.     COLOR1 = ['FBF0DB','FFFFFF','CCCCCC']
  39.     COLOR2 = ['9D81FA','FAA0FB','A794FF','8A44F2','CBDCFE']
  40.     hana = ["m 17 32 b 16 36 12 39 11 39 b 9 38 5 39 3 36 b 1 34 3 27 4 27 b 7 25 11 26 13 23 b 10 23 6 21 4 17 b 5 14 5 10 5 6 b 8 5 11 9 13 7 b 13 7 13 7 13 7 b 16 10 18 12 18 14 b 18 10 19 7 21 4 b 24 4 26 3 29 3 b 31 6 32 8 34 11 b 32 14 31 17 29 20 b 32 18 36 18 40 18 b 42 20 42 24 45 26 b 42 27 41 32 38 33 b 35 34 32 33 29 30 b 30 34 33 37 32 40 b 31 42 31 44 30 46 b 26 47 22 45 19 43 b 18 40 17 36 17 32  "]
  41.     if _i == 3:
  42.         if _j < 6:
  43.             for i in range(2):
  44.                 RAN1 = randint(40 , 100)
  45.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  46.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(-40,-20),RAN2,_Y+randint(40,60))+bord(0)+blur(2)+color1(COLOR1[randint(0,2)])+fsc(RAN1,RAN1)+animation(frz(randint(-1080,-360))), "{\p1}" + hana[0] + "{\p0}")
  47.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  48.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  49.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  50.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  51.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("361FF0")+blur(1)+bord(2)+color3(COLOR1[randint(0,2)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  52.         else:
  53.             for i in range(2):
  54.                 RAN1 = randint(40 , 100)
  55.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  56.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(-40,-20),RAN2,_Y+randint(40,60))+bord(0)+blur(2)+color1(COLOR1[randint(0,2)])+fsc(RAN1,RAN1)+animation(frz(randint(-1080,-360))), "{\p1}" + hana[0] + "{\p0}")
  57.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  58.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  59.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  60.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  61.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("117CFD")+blur(1)+bord(2)+color3(COLOR1[randint(0,2)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  62.     if _i == 16 or _i == 29:
  63.         if _j > 2:
  64.             for i in range(2):
  65.                 RAN1 = randint(40 , 100)
  66.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  67.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(-40,-20),RAN2,_Y+randint(40,60))+bord(0)+blur(2)+color1(COLOR1[randint(0,2)])+fsc(RAN1,RAN1)+animation(frz(randint(-1080,-360))), "{\p1}" + hana[0] + "{\p0}")
  68.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  69.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  70.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  71.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  72.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("361FF0")+blur(1)+bord(2)+color3(COLOR1[randint(0,2)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  73.         else:
  74.             for i in range(2):
  75.                 RAN1 = randint(40 , 100)
  76.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  77.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(-40,-20),RAN2,_Y+randint(40,60))+bord(0)+blur(2)+color1(COLOR1[randint(0,2)])+fsc(RAN1,RAN1)+animation(frz(randint(-1080,-360))), "{\p1}" + hana[0] + "{\p0}")
  78.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  79.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  80.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  81.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  82.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("117CFD")+blur(1)+bord(2)+color3(COLOR1[randint(0,2)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  83.     if _i == 37 or _i == 53:
  84.         for i in range(4):
  85.             RAN1 = randint(40 , 100)
  86.             RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  87.             ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(20,40),RAN2,_Y+randint(-60,-40))+bord(0)+blur(2)+color1(COLOR2[randint(0,4)])+fsc(RAN1,RAN1)+animation(frz(randint(360,1080))), "{\p1}" + hana[0] + "{\p0}")
  88.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  89.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  90.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  91.         ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  92.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("361FF0")+blur(1)+bord(2)+color3(COLOR2[randint(0,4)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  93.     if _i == 20 or _i == 48:
  94.         if _j < 6:
  95.             for i in range(4):
  96.                 RAN1 = randint(40 , 100)
  97.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  98.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(20,40),RAN2,_Y+randint(-60,-40))+bord(0)+blur(2)+color1(COLOR2[randint(0,4)])+fsc(RAN1,RAN1)+animation(frz(randint(360,1080))), "{\p1}" + hana[0] + "{\p0}")
  99.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  100.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  101.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  102.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  103.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("361FF0")+blur(1)+bord(2)+color3(COLOR2[randint(0,4)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  104.         else:
  105.             for i in range(4):
  106.                 RAN1 = randint(40 , 100)
  107.                 RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  108.                 ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(20,40),RAN2,_Y+randint(-60,-40))+bord(0)+blur(2)+color1(COLOR2[randint(0,4)])+fsc(RAN1,RAN1)+animation(frz(randint(360,1080))), "{\p1}" + hana[0] + "{\p0}")
  109.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  110.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  111.             ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  112.             ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  113.             ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("117CFD")+blur(1)+bord(2)+color3(COLOR2[randint(0,4)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  114.    
  115.     ############以上是挑出来染色的部分,和下面的部分无区别,复制黏贴而已#########
  116.             
  117.         
  118.     if _i < 3  or (_i > 3 and _i < 16) or (_i > 24 and _i < 29) :
  119.         for i in range(2):
  120.             RAN1 = randint(40 , 100)
  121.             RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  122.             ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(-40,-20),RAN2,_Y+randint(40,60))+bord(0)+blur(2)+color1(COLOR1[randint(0,2)])+fsc(RAN1,RAN1)+animation(frz(randint(-1080,-360))), "{\p1}" + hana[0] + "{\p0}")
  123.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  124.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  125.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  126.         ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  127.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("117CFD")+blur(1)+bord(2)+color3(COLOR1[randint(0,2)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  128.     if (_i > 16 and _i < 20)  or (_i > 20 and _i < 25) or (_i > 29 and _i < 37) or (_i > 37 and _i < 48) or (_i > 48 and _i < 53):
  129.         for i in range(4):
  130.             RAN1 = randint(40 , 100)
  131.             RAN2 = randint(POS1[0]-40 , POS1[0]+_Length[_i]+40)
  132.             ass_main(ASS_BUF,SubL(_BT+randint(-50,100),_ET+randint(-30,10)), an(5)+fad(300,400)+move(RAN2,_Y+randint(20,40),RAN2,_Y+randint(-60,-40))+bord(0)+blur(2)+color1(COLOR2[randint(0,4)])+fsc(RAN1,RAN1)+animation(frz(randint(360,1080))), "{\p1}" + hana[0] + "{\p0}")
  133.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  134.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  135.         ass_main(ASS_BUF,SubL(_BT-40,_BT-5,4), an(5)+pos(_X,_Y)+fad(150,100)+color1("CBDCFE")+color3("FFFFFF")+bord(3)+blur(3)+be(5), _TXT)
  136.         ass_main(ASS_BUF,SubL(_BT-5,_BT+_SK,4), an(5)+pos(_X,_Y)+color1("CBDCFE")+bord(0),_TXT)
  137.         ass_main(ASS_BUF,SubL(_BT+_SK,_BT+_SK+_KT,4), an(5)+pos(_X,_Y)+color1("117CFD")+blur(1)+bord(2)+color3(COLOR2[randint(0,4)])+be(3)+fsc(100,100)+animation(0,5 * _KT, fsc(120,120)+bord(3)+blur(4)+be(8))+animation(6 * _KT,10 * _KT, be(3)+fsc(100,100)+blur(1)+bord(2)), _TXT)
  138.     if _i < 11 or (_i > 33 and _i < 38):
  139.         PIX = TextPix(_Font, _TXT)
  140.         PIX = PixBlur(PIX, _Br)
  141.         points = PixPoints2(PIX)         # Get points from the PIX object.
  142.         pt_num = len(points)
  143.         dx = _X - int((_A + GetVal(val_Spacing)) / 2 + 0.5) + PIX[0][0]
  144.         dy = _Y - int(_Fs / 2 + 0.5) + PIX[0][1]
  145.         for e in range(pt_num):
  146.             x1 = dx+points[e][0]
  147.             y1 = dy+points[e][1]
  148.             w = points[e][0]
  149.             h = points[e][1]
  150.             idx = 4 * (h * PIX[1][0] + w)
  151.             PixA = PIX[2][idx + 3]
  152.             t1 = 25 * (e / points[len(points) - 1][0])
  153.             t2 = t1 + 500
  154.             MOVE = move(x1,y1,x1,y1-40+randint(-20,20),t1,t2)
  155.             ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_BT+_SK+_KT+(t2 / 10),4,Pix_Style),MOVE+bord(1)+fsc(50,50)+fad(0,200)+be(2)+color1('117CFD')+color3('117CFD')+alpha(255 - PixA), PixPt())
  156.     if (_i > 10 and _i < 34) or _i > 37:
  157.         PIX = TextPix(_Font, _TXT)
  158.         PIX = PixBlur(PIX, _Br)
  159.         points = PixPoints2(PIX)         # Get points from the PIX object.
  160.         pt_num = len(points)
  161.         dx = _X - int((_A + GetVal(val_Spacing)) / 2 + 0.5) + PIX[0][0]
  162.         dy = _Y - int(_Fs / 2 + 0.5) + PIX[0][1]
  163.         for e in range(pt_num):
  164.             x1 = dx+points[e][0]
  165.             y1 = dy+points[e][1]
  166.             w = points[e][0]
  167.             h = points[e][1]
  168.             idx = 4 * (h * PIX[1][0] + w)
  169.             PixA = PIX[2][idx + 3]
  170.             CIR = Cir(pt_num, e, x1, y1, 25)
  171.             t3 = 13 * AdvInt(sqrt((points[e][0]-sqrt(_A * _A + _Fs *_Fs) / 2 + 7) * (points[e][0]-sqrt(_A * _A + _Fs *_Fs) / 2 + 7) + (points[e][1]-sqrt(_A * _A + _Fs *_Fs) / 2 + 7) * (points[e][1]-sqrt(_A * _A + _Fs *_Fs) / 2 + 7))) % sqrt(_A * _A + _Fs *_Fs)
  172.             t4 = t3 + 350
  173.             MOVE = move(x1,y1,CIR[0], CIR[1],int(t3),int(t4))
  174.             ass_main(ASS_BUF,SubL(_BT+_SK+_KT,_BT+_SK+_KT+(t4 / 10),4,Pix_Style),MOVE+bord(1)+fsc(50,50)+fad(0,200)+be(2)+color1('117CFD')+color3('117CFD')+alpha(255 - PixA), PixPt())
  175.             

  176.         
  177.         

  178.     return (ASS_BUF,None)           



  179. def Cir(n, i, a, b, r):       # 圆函数
  180.     theta = i * 2 * pi / n
  181.     x = AdvInt(r * cos(theta)) + a
  182.     y = AdvInt(r * sin(theta)) + b
  183.     return [x, y]
复制代码
总算解决了粒子的问题,模仿了艾大的粒子效果,多谢M大帮俺解决各种问题。总算填了个坑,至于预览=。=最近几天过了再弄吧。。。

回帖推荐

渣渣疯子 发表于8楼  查看完整内容

预览来了~ 。。。配色是俺的死结。。。就别吐槽字体配色了。。。
1

查看全部评分

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 2012-4-3 22:11:20 |只看该作者
顶一个,疯子亲辛苦了~

Moderator

youkaze

Rank: 5Rank: 5

板凳
发表于 2012-4-3 22:12:38 |只看该作者
来顶起XD

Moderator

疯子

Rank: 5Rank: 5

地板
发表于 2012-4-3 22:36:02 |只看该作者
milkyjing 发表于 2012-4-3 22:11
顶一个,疯子亲辛苦了~

不帮俺的话,粒子的东西俺根本搞不定啊

Rank: 5Rank: 5

5#
发表于 2012-4-3 23:00:54 |只看该作者
PixPoints2那个函数挺屌的

正式会员

妖木

Rank: 4

6#
发表于 2012-4-3 23:11:29 |只看该作者
忽然想到压制问题……我还要再去EP那里围观一下==
依然压制无能啊八嘎

Moderator

疯子

Rank: 5Rank: 5

7#
发表于 2012-4-3 23:41:29 |只看该作者
six 发表于 2012-4-3 23:00
PixPoints2那个函数挺屌的

都是M大弄的,之前的那个函数是横向扫描,这个换成了纵向扫描

Moderator

疯子

Rank: 5Rank: 5

8#
发表于 2012-4-3 23:50:56 |只看该作者
本帖最后由 渣渣疯子 于 2012-4-3 23:52 编辑


预览来了~
。。。配色是俺的死结。。。就别吐槽字体配色了。。。

Rank: 4

9#
发表于 2012-4-5 17:07:46 |只看该作者
本帖最后由 zxcqwert 于 2012-4-5 17:07 编辑

碉堡,圆函数和points那块还没搞懂...
我得赶紧学习

Rank: 5Rank: 5

10#
发表于 2012-4-6 10:48:26 |只看该作者
疯子辛苦了..
这个碉堡了...

Rank: 4

11#
发表于 2012-6-20 15:54:26 |只看该作者
好厉害~~只会使用py脚本不会编的~悄悄飘过~~大师好厉害~~

Rank: 5Rank: 5

12#
发表于 2012-6-30 02:06:14 |只看该作者
来借PixPoints2
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-11-22 01:28

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH