- UID
- 2710
- 积分
- 68
- 帖子
- 19
- 主题
- 6
- 论坛币
- 263
- 威望
- 0
- EP值
- 33
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2015-7-28
- 在线时间
- 19 小时
- 最后登录
- 2018-10-18
|
下面是出问题的一段 可惜我没觉得有问题啊……就说我_COLOR本地变量未声明……而且之前还没这个问题= =忽然就出现了
问题对应在了下一段中的
“ ass_main(ASS_BUF, SubL(_BT+_SK+_KT/2,_BT+_SK+_KT),an(2)+pos(_x,_y+_Fs/2)+t(_COLOR)+_BL+fscy(70)+t(fscy(100)),_txt)
ass_main(ASS_BUF, SubL(_BT+_SK+_KT,out_ts),pos(_x,_y)+ _COLOR+_BL,_txt)”
所以想求助一下究竟是什么问题,困扰我好久了……- #################个人#################
-
- if (_i > -1 and _i < 3) or (_i > 3 and _i < 6) or (_i > 6 and _i < 10) or _i == 13 or _i == 18 or (_i > 20 and _i < 23) or _i == 24 or (_i > 25 and _i < 28) or (_i > 28 and _i < 32) or _i == 33 or (_i > 44 and _i < 48) or _i == 41 or _i == 52:
-
- #################input#################
-
- in_EFT = move(_x, _y-20, _x, _y)+fad(duration, 0) + _BL
- ass_main(ASS_BUF, SubL(in_ts, in_te), in_EFT, _txt)
-
- #################performance#################
- ass_main(ASS_BUF, SubL(in_te,_BT+_SK),pos(_x,_y)+_BL,_txt)
- ass_main(ASS_BUF, SubL(_BT+_SK,_BT+_SK+_KT/2),an(2)+pos(_x,_y+_Fs/2)+_BL+t(fscy(70)),_txt)
- #################mimorin#################
- if _i == 0 or _i == 5 or _i == 18 or _i == 21 or _i == 27 or _i == 41 or (_i > 44 and _i < 48) or _i == 52 :
- _COLOR = color1("H8353FF")+color3("FFFFFF")+color4(CL[randint(0,3)])
- #################soramaru#################
- if _i == 1 or _i == 7 or _i == 22 or _i == 29 :
- _COLOR = color1("H19EDF0")+color3("FFFFFF")+color4(CL[randint(0,3)])
- #################izusama#################
- if _i == 4 or _i == 9 or _i == 26 or _i == 31 :
- _COLOR = color1("HE18628")+color3("FFFFFF")+color4(CL[randint(0,3)])
- #################mekoron#################
- if _i == 2 or _i == 8 or _i == 24 or _i == 30 :
- _COLOR = color1("H22AD40")+color3("FFFFFF")+color4(CL[randint(0,3)])
- if _i == 13 :
- if _j < 3 :
- _COLOR = color1("H8353FF")+color3("FFFFFF")+color4(CL[randint(0,3)])
- if _j > 2 :
- _COLOR = color1("H19EDF0")+color3("FFFFFF")+color4(CL[randint(0,3)])
- if _i == 36 :
- if _j < 3 :
- _COLOR = color1("H22AD40")+color3("FFFFFF")+color4(CL[randint(0,3)])
- if _j > 2 :
- _COLOR = color1("HE18628")+color3("FFFFFF")+color4(CL[randint(0,3)])
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT/2,_BT+_SK+_KT),an(2)+pos(_x,_y+_Fs/2)+t(_COLOR)+_BL+fscy(70)+t(fscy(100)),_txt)
- ass_main(ASS_BUF, SubL(_BT+_SK+_KT,out_ts),pos(_x,_y)+ _COLOR+_BL,_txt)
-
- #################output#################
-
- out_EFT = move(_x, _y, _x + 60, _y) + _COLOR + fad(0, duration) +_BL
- ass_main(ASS_BUF, SubL(out_ts, out_te), out_EFT, _txt)
-
- #################extra#################
- po_ts = in_te + _SK - _KT/2 - 20 # 效果开始时间
- po_te = in_te + _SK + _KT/2 + 10 # 效果结束时间
- EFT1 = alpha1(170) + alpha3(170) + color1('FFFFFF') + bord(5) + blur(5) + t(0, 100, bord(3) + blur(3)) + fad(0, 200)
- EFT2 = alpha1(170) + alpha3(0) + color1('FFFFFF') + color3('FFFFFF') + bord(3) + blur(3) + t(0, 100, bord(1) + blur(1) + alpha3(70)) + fad(0, 200)
- num = 40 # 曲线上点的个数
-
- ##### point1 #####
- xs = _x - _Fs # 开始点
- ys = _y + _Fs/2
- xc1 = xs + _Fs/2 # 控制点
- yc1 = ys + _Fs
- xe = _x # 结束点
- ye = _y + _Fs/2
- points = Bezier2(num, xs, ys, xe, ye, xc1, yc1) # 2阶贝塞尔曲线, 控制点的生成是重点以及难点
- for i in range(num):
- POS = pos(points[i][0], points[i][1]) # 获取曲线上点坐标
- EFT = POS + EFT1 + color3(CL[_j%4])
- ass_main(ASS_BUF, SubL(po_ts+i , po_te +i, 10, Pix_Style), EFT, PixPt())
- EFT = POS + EFT2
- ass_main(ASS_BUF, SubL(po_ts+i , po_te +i, 10, Pix_Style), EFT, PixPt())
复制代码 |
|